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