generated from fahricansecer/boilerplate-fe
This commit is contained in:
@@ -260,6 +260,13 @@ export interface NotificationListResponse {
|
||||
|
||||
// ── API Functions ────────────────────────────────────────────────────
|
||||
|
||||
export const authApi = {
|
||||
login: (data: any) =>
|
||||
apiClient.post('/auth/login', data).then((r) => r.data),
|
||||
register: (data: any) =>
|
||||
apiClient.post('/auth/register', data).then((r) => r.data),
|
||||
};
|
||||
|
||||
export const projectsApi = {
|
||||
list: (params?: { page?: number; limit?: number; status?: string }) =>
|
||||
apiClient.get<PaginatedResponse<Project>>('/projects', { params }).then((r) => r.data),
|
||||
|
||||
Reference in New Issue
Block a user