feat: refactor operator dashboard and report handling, add public intervention page
This commit is contained in:
@@ -39,6 +39,9 @@ export const useOperator = () => {
|
||||
const revokeInterventionLink = (id: number) =>
|
||||
useApiFetch<OkResponse>(`/api/v1/reports/${id}/intervention-link`, { method: 'DELETE' })
|
||||
|
||||
const getPublicIntervention = (token: string) =>
|
||||
useApiFetch<any>(`/api/v1/interventions/${token}`, { method: 'GET' })
|
||||
|
||||
return {
|
||||
getOpenReports,
|
||||
getAssignedReports,
|
||||
@@ -50,5 +53,6 @@ export const useOperator = () => {
|
||||
getInterventionSummary,
|
||||
createInterventionLink,
|
||||
revokeInterventionLink,
|
||||
getPublicIntervention,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user