[WIP] Добавил обертку для запросов

This commit is contained in:
megavrilinvv
2022-11-02 19:37:25 +03:00
parent ac282a624f
commit b12d740e24
3 changed files with 86 additions and 7 deletions

View File

@@ -70,7 +70,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("http://45.84.227.122:8080/auth/jwt/create/", requestOptions)
.then((result) => result.json())
.then((token) => {
localStorage.setItem("tokenAccess", token.access);