import { Router } from 'express';
import {
  getAnomalies,
  getDashboard,
  getEmprunts,
  getHistorique,
  getHistoriqueCsv,
  getMateriels,
  getNotifications,
  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.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);
