update login endpoint

This commit is contained in:
smanylov
2026-06-06 10:12:42 +07:00
parent d4d3e5d3b1
commit e2b6591246
+2 -2
View File
@@ -46,11 +46,11 @@ export async function authorization(
try { try {
const { email, password } = validatedFields.data; const { email, password } = validatedFields.data;
const response = await fetch(`${API_BASE_URL}/api/admin`, { const response = await fetch(`${API_BASE_URL}/api/admin/login`, {
method: 'POST', method: 'POST',
body: JSON.stringify({ body: JSON.stringify({
version: 1, version: 1,
msg_id: 100, msg_id: 101,
message_body: { message_body: {
action: "login", action: "login",
email: email, email: email,