Backend
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user