change api url
This commit is contained in:
@@ -85,14 +85,14 @@ export default {
|
||||
localStorage.password = this.user.password;
|
||||
},
|
||||
async auth(token) {
|
||||
let res = await fetch("http://45.84.227.122:8080/auth/users/me/", {
|
||||
let res = await fetch("https://astra-dev.dopcore.com/auth/users/me/", {
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
},
|
||||
});
|
||||
res = await res.json();
|
||||
let data = await fetch(
|
||||
`http://45.84.227.122:8080/accounts/users/${res.id}/detail`,
|
||||
`https://astra-dev.dopcore.com/accounts/users/${res.id}/detail`,
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
@@ -109,7 +109,7 @@ export default {
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(this.user),
|
||||
};
|
||||
fetch("http://45.84.227.122:8080/auth/jwt/create/", requestOptions)
|
||||
fetch("https://astra-dev.dopcore.com/auth/jwt/create/", requestOptions)
|
||||
.then((result) => {
|
||||
if (result.status === 200) {
|
||||
return result.json();
|
||||
|
||||
Reference in New Issue
Block a user