feat(admin): added backend for admin pages

This commit is contained in:
Fishandchips321 2026-03-05 17:19:24 +00:00
parent 54cfc05b88
commit 56ea7fb7f0
26 changed files with 662 additions and 42 deletions

View file

@ -7,7 +7,7 @@ export interface Session {
}
export const logIn = async (username: string, password: string) => {
const response = await axios.post<Session>(`${apiUrl}/auth`, `username=${encodeURI(username)}&password=${encodeURI(password)}`);
const response = await axios.post<Session>(`${apiUrl}/auth/login`, `username=${encodeURI(username)}&password=${encodeURI(password)}`);
return response.data;
}