init project portal web
This commit is contained in:
7
lib/login/data/repository/index.ts
Normal file
7
lib/login/data/repository/index.ts
Normal file
@ -0,0 +1,7 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user