import { Router } from 'express';
import AuthController from '../controllers/AuthController';
import { validateRegister, validateLogin, validateForgotPassword, validateResetPassword } from '../validators/authValidator';

const router = Router();

router.post('/register', validateRegister, AuthController.register);
router.post('/login', validateLogin, AuthController.login);
router.post('/refresh', AuthController.refresh);
router.post('/logout', AuthController.logout);
router.post('/forgot-password', validateForgotPassword, AuthController.forgotPassword);
router.post('/reset-password', validateResetPassword, AuthController.resetPassword);

export default router;
