Last active
February 3, 2019 11:52
-
-
Save andregardi/fbabfc079a8518f27c513e688714b271 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Router } from "express"; | |
| import AuthController from "../controllers/AuthController"; | |
| import { checkJwt } from "../middlewares/checkJwt"; | |
| const router = Router(); | |
| //Login route | |
| router.post("/login", AuthController.login); | |
| //Change my password | |
| router.post("/change-password", [checkJwt], AuthController.changePassword); | |
| export default router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment