Skip to content

Instantly share code, notes, and snippets.

@saman-ghm
Created October 21, 2019 20:26
Show Gist options
  • Save saman-ghm/1ceb61d7ec56ff7a3d62fe6f1fbe4674 to your computer and use it in GitHub Desktop.
Save saman-ghm/1ceb61d7ec56ff7a3d62fe6f1fbe4674 to your computer and use it in GitHub Desktop.
import { Router } from "express";
import { checkAuthToken } from "../middlewares/checkAuthToken";
import UserController from "../controllers/UserController"
const router = Router();
router.get("/check", [ checkAuthToken ], UserController.check);
export default router;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment