feat(auth): add profile and QR card identification endpoints

This commit is contained in:
SaidSoighiri94
2026-06-22 10:13:45 +02:00
parent 20490a05c5
commit b5a7577e8d
7 changed files with 106 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
import { Router } from 'express';
import { currentUser } from '../middlewares/current-user';
import { getMe, identifier } from '../controllers/auth.controller';
export const authRoutes: Router = Router();
// Identification par QR code : point d'entrée du parcours, donc public.
authRoutes.get('/carte/:qr', identifier);
// Profil de l'utilisateur déjà identifié : protégé.
authRoutes.get('/me', currentUser, getMe);