Files
gg-backend/frontend/src/api/auth.ts
T

10 lines
233 B
TypeScript
Raw Normal View History

2026-05-26 15:48:01 +05:30
import apiClient from './client';
2026-03-16 17:55:33 +05:30
2026-05-26 15:48:01 +05:30
export const loginApi = async (username: string, password: string): Promise<any> => {
const response = await apiClient.post('/auth/login/', {
2026-03-16 17:55:33 +05:30
username,
password,
});
return response.data;
};