eletrotupi / tcc/ api/src/routes/auth.tsc901c35af9c84b6a29e5185545ced1129f33b8f4
540 B | 14 lines Raw
1
import { Router } from 'express';
2
import { AuthController } from '@app/controllers/auth';
3
import { requireAuth } from '@app/middleware/auth';
4

5
const router = Router();
6

7
router.post('/login', AuthController.login);
8
router.post('/forgot-password', AuthController.forgotPassword);
9
router.post('/reset-password', AuthController.resetPassword);
10
router.get('/verify', AuthController.verify);
11
router.post('/activate', AuthController.activate);
12
router.post('/resend_code', requireAuth, AuthController.resendActivationCode);
13

14
export default router;