feat(backend): add responsable notifications endpoints
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user