13 lines
238 B
TypeScript
13 lines
238 B
TypeScript
|
|
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;
|
||
|
|
};
|