From 43ab8245cc980baa83fd07507cce0a05e35a62dd Mon Sep 17 00:00:00 2001 From: alex karpovich Date: Sat, 5 Oct 2024 21:08:39 +0300 Subject: [PATCH] feat: change axios requests --- frontend/src/index.css | 2 +- frontend/src/services/api/login.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index e30857f..d99730d 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -133,7 +133,7 @@ header .login-btn:hover { .login-netologiya, .login-fio { max-width: 320px; width: 100%; - margin: 24px auto; + margin: auto; display: flex; align-items: flex-start; justify-content: center; diff --git a/frontend/src/services/api/login.js b/frontend/src/services/api/login.js index 76929fe..b678ab8 100644 --- a/frontend/src/services/api/login.js +++ b/frontend/src/services/api/login.js @@ -8,7 +8,7 @@ export function getTokenFromLocalStorage() { export async function loginModeus(username, password) { try { - return await axios.post(`${BACKEND_URL}/api/modeus/auth`, {username, password}); + return await axios.post(`${BACKEND_URL}/api/netology/auth`, {username, password}); } catch (e) { return e.response; }