Skip to content

Instantly share code, notes, and snippets.

@andregardi
Last active February 3, 2019 11:52
Show Gist options
  • Select an option

  • Save andregardi/fbabfc079a8518f27c513e688714b271 to your computer and use it in GitHub Desktop.

Select an option

Save andregardi/fbabfc079a8518f27c513e688714b271 to your computer and use it in GitHub Desktop.
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