mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-08 17:34:13 +08:00
13 lines
285 B
TypeScript
13 lines
285 B
TypeScript
import client from "./internal/httpClient";
|
|
|
|
export function login(email: string, password: string) {
|
|
return client.post("/api/v1/auth/login/password", {
|
|
email: email,
|
|
password: password,
|
|
});
|
|
}
|
|
|
|
export function logout() {
|
|
return client.post("/api/v1/auth/logout", {});
|
|
}
|