import { Router } from 'express'; import { getAnomalies, getDashboard, getEmprunts, getHistorique, getHistoriqueCsv, getMateriels, getNotifications, patchAnomalieStatut, patchNotificationLue, patchNotificationsLues, } from '../controllers/responsable.controller'; export const responsableRoutes: Router = Router(); 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); responsableRoutes.get('/historique', getHistorique); responsableRoutes.get('/historique/export.csv', getHistoriqueCsv);