feat: add department dashboard
This commit is contained in:
12
frontend/src/api/auth.ts
Normal file
12
frontend/src/api/auth.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import apiClient from "./client";
|
||||
|
||||
export const loginApi = async (
|
||||
username: string,
|
||||
password: string,
|
||||
): Promise<any> => {
|
||||
const response = await apiClient.post("/auth/login/", {
|
||||
username,
|
||||
password,
|
||||
});
|
||||
return response.data;
|
||||
};
|
||||
Reference in New Issue
Block a user