Fascicoli+Tassonomia+permessi
This commit is contained in:
@@ -2,6 +2,7 @@ import apiClient from './client'
|
||||
import type {
|
||||
LabelCreate,
|
||||
LabelResponse,
|
||||
LabelTreeResponse,
|
||||
LabelUpdate,
|
||||
MessageBulkLabelRequest,
|
||||
MessageBulkLabelResponse,
|
||||
@@ -16,6 +17,10 @@ export const labelsApi = {
|
||||
list: () =>
|
||||
apiClient.get<LabelResponse[]>('/labels').then((r) => r.data),
|
||||
|
||||
/** Restituisce la tassonomia come albero annidato (Ambito > Processo > Classificazione). */
|
||||
getTree: () =>
|
||||
apiClient.get<LabelTreeResponse[]>('/labels/tree').then((r) => r.data),
|
||||
|
||||
create: (data: LabelCreate) =>
|
||||
apiClient.post<LabelResponse>('/labels', data).then((r) => r.data),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user