mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
прор222в2в2в
This commit is contained in:
@@ -21,7 +21,6 @@ server {
|
||||
|
||||
# API proxy
|
||||
location /api/ {
|
||||
rewrite ^/api/(.*) /$1 break;
|
||||
proxy_pass http://backend_upstream;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
|
@@ -101,11 +101,7 @@ const handleLogin = async () => {
|
||||
formData.append('username', username.value)
|
||||
formData.append('password', password.value)
|
||||
|
||||
const response = await axios.post('/api/auth/admin/login', formData, {
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
}
|
||||
})
|
||||
const response = await axios.post('/api/auth/admin/login', formData)
|
||||
console.log('Ответ от сервера:', response.data)
|
||||
|
||||
// Сохраняем токен администратора
|
||||
|
Reference in New Issue
Block a user