All files / src/routes idnot.routes.ts

0% Statements 0/11
100% Branches 0/0
100% Functions 0/0
0% Lines 0/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                               
import { Router } from 'express';
import { IdNotHandlers } from '../handlers/idnot.handlers';
import { authenticateIdNot } from '../middleware/auth';
 
const router = Router();
 
router.get('/user/rattachements', IdNotHandlers.getUserRattachements);
router.get('/office/rattachements', IdNotHandlers.getOfficeRattachements);
router.post('/auth', IdNotHandlers.authenticate);
 
router.get('/user', authenticateIdNot, IdNotHandlers.getCurrentUser);
router.post('/logout', authenticateIdNot, IdNotHandlers.logout);
router.get('/validate', authenticateIdNot, IdNotHandlers.validateToken);
 
export { router as idnotRoutes };