added env files
This commit is contained in:
@@ -224,7 +224,7 @@ export default {
|
||||
data.statusError = 'Is not a valid authcode'
|
||||
|
||||
const res = await axios
|
||||
.post(`http://localhost:8000/player/trackme`, `id=${store.state.id64}&authcode=${data.userData.authcode}&sharecode=${data.userData.sharecode}`)
|
||||
.post(`${process.env.VUE_APP_API_URL}/player/trackme`, `id=${store.state.id64}&authcode=${data.userData.authcode}&sharecode=${data.userData.sharecode}`)
|
||||
|
||||
if (res.status === 401) {
|
||||
data.statusError = 'Data does not match player'
|
||||
@@ -239,7 +239,7 @@ export default {
|
||||
|
||||
const GetUser = () => {
|
||||
axios
|
||||
.get(`http://localhost:8000/player/${props.id}`)
|
||||
.get(`${process.env.VUE_APP_API_URL}/player/${props.id}`)
|
||||
.then((response) => {
|
||||
data.playerDetails = response.data
|
||||
data.matches = response.data.matches
|
||||
|
||||
Reference in New Issue
Block a user