feat(backend): add responsable notifications endpoints

This commit is contained in:
SaidSoighiri94
2026-07-15 15:50:08 +02:00
parent a14d6827ee
commit d2d2245675
6 changed files with 235 additions and 1 deletions
@@ -4,6 +4,9 @@ import {
getDashboard,
getEmprunts,
getMateriels,
getNotifications,
patchNotificationLue,
patchNotificationsLues,
} from '../controllers/responsable.controller';
export const responsableRoutes: Router = Router();
@@ -12,3 +15,6 @@ responsableRoutes.get('/dashboard', getDashboard);
responsableRoutes.get('/emprunts', getEmprunts);
responsableRoutes.get('/materiels', getMateriels);
responsableRoutes.get('/anomalies', getAnomalies);
responsableRoutes.get('/notifications', getNotifications);
responsableRoutes.patch('/notifications/lu-toutes', patchNotificationsLues);
responsableRoutes.patch('/notifications/:id/lu', patchNotificationLue);