feat: update admin panel labels and adjust API endpoints for areas

This commit is contained in:
gabdevele
2026-06-15 14:30:06 +02:00 Unverified
parent d6eb7d3e9b
commit 645e6367e9
3 changed files with 124 additions and 15 deletions
+2 -2
View File
@@ -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,
}
}
}