Skip to content

Commit

Permalink
BE #6 Fix auth route path
Browse files Browse the repository at this point in the history
  • Loading branch information
Satyajit Dey committed May 17, 2020
1 parent 72e75d5 commit 288a9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/auth.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ const AuthorizationController = require('../controllers/auth.controller');
const FieldValidateMiddleware = require("../middlewares/field.validation.middleware");
const AuthValidationMiddleware = require("../middlewares/auth.validation.middleware");

router.post('/auth/token', [
router.post('/token', [
AuthValidationMiddleware.authFieldValidationRules(), [
FieldValidateMiddleware.validateRules,
AuthValidationMiddleware.matchEmailAndPassword
], AuthorizationController.login
]);

router.get('/auth/logout', AuthorizationController.logout);
router.get('/logout', AuthorizationController.logout);

module.exports = router;

0 comments on commit 288a9b3

Please sign in to comment.