This commit is contained in:
2026-05-08 09:06:14 +12:00
parent 1533b5aa9b
commit 9afc3170ff
22 changed files with 2710 additions and 549 deletions
+5
View File
@@ -284,6 +284,11 @@ export const api = {
}),
internalSession: (fetcher?: ApiFetch) =>
request<LoginResponse>('/api/access/me', { method: 'GET' }, 'client', fetcher),
updateMe: (payload: { name?: string; email?: string; current_password?: string; new_password?: string }) =>
request<LoginResponse>('/api/access/me', {
method: 'PATCH',
body: JSON.stringify(payload)
}, 'client'),
adminLogin: (email: string, password: string) =>
request<LoginResponse>('/api/auth/admin/login', {
method: 'POST',