feat(backend): expose POST /api/emprunts with departure checklist

This commit is contained in:
SaidSoighiri94
2026-07-06 09:46:03 +02:00
parent d8f044924e
commit 3215a3c11f
9 changed files with 267 additions and 11 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
import { Router } from 'express';
import { getMesEmprunts } from '../controllers/emprunt.controller';
import { getMesEmprunts, postEmprunt } from '../controllers/emprunt.controller';
export const empruntRoutes: Router = Router();
empruntRoutes.post('/', postEmprunt);
empruntRoutes.get('/', getMesEmprunts);
export const mesEmpruntsRoutes: Router = Router();
mesEmpruntsRoutes.get('/', getMesEmprunts);