Files
EME_APP/eme-backend/src/routes/responsable.routes.ts
T
2026-07-17 10:06:39 +02:00

27 lines
938 B
TypeScript

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);