Skip to content

Commit

Permalink
feat: change axios requests
Browse files Browse the repository at this point in the history
  • Loading branch information
alex karpovich committed Oct 5, 2024
1 parent 1154319 commit 43ab824
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/services/api/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 43ab824

Please sign in to comment.