feat: update admin panel labels and adjust API endpoints for areas
This commit is contained in:
@@ -21,7 +21,7 @@ export const useAdmin = () => {
|
||||
useApiFetch<OkResponse>(`/api/v1/admin/users/${id}/roles`, { method: 'PATCH', body })
|
||||
|
||||
const getAreas = () =>
|
||||
useApiFetch<AreaListResponse>('/api/v1/admin/areas', { method: 'GET' })
|
||||
useApiFetch<AreaListResponse>('/api/v1/areas', { method: 'GET' })
|
||||
|
||||
const createArea = (body: CreateAreaRequest) =>
|
||||
useApiFetch<OkResponse>('/api/v1/admin/areas', { method: 'POST', body })
|
||||
@@ -58,4 +58,4 @@ export const useAdmin = () => {
|
||||
getModerationFlags,
|
||||
updateModerationFlag,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user