Files
ocs-portal-web/lib/login/data/repository/index.ts
2025-04-15 13:56:54 +07:00

7 lines
271 B
TypeScript

import { apiClient } from "@/services/api/api-client"
export const loginRepository = {
login: async (username: string, password: string) => await apiClient("/api/login", "POST", {username, password}),
logout: async () => await apiClient("/api/logout", "POST")
}