feat(backend): add responsable anomalies status cycle

This commit is contained in:
SaidSoighiri94
2026-07-17 10:06:39 +02:00
parent 9d8ae70063
commit 2772f4cfd4
5 changed files with 163 additions and 1 deletions
@@ -7,6 +7,7 @@ import {
getHistoriqueCsv,
getMateriels,
getNotifications,
patchAnomalieStatut,
patchNotificationLue,
patchNotificationsLues,
} from '../controllers/responsable.controller';
@@ -17,6 +18,7 @@ responsableRoutes.get('/dashboard', getDashboard);
responsableRoutes.get('/emprunts', getEmprunts);
responsableRoutes.get('/materiels', getMateriels);
responsableRoutes.get('/anomalies', getAnomalies);
responsableRoutes.patch('/anomalies/:id/statut', patchAnomalieStatut);
responsableRoutes.get('/notifications', getNotifications);
responsableRoutes.patch('/notifications/lu-toutes', patchNotificationsLues);
responsableRoutes.patch('/notifications/:id/lu', patchNotificationLue);