Skip to content
Snippets Groups Projects
Commit 42cef9e5 authored by alrwasheda's avatar alrwasheda :speech_balloon:
Browse files

showCurrentUser + UpdateCurrentUser Routes

parent 0170ed5e
No related branches found
No related tags found
No related merge requests found
import { Router } from "express";
import validateToken from "../middleware/validateToken";
import userControllers from "../controllers/userControllers.controllers";
import handleValidationResult from "../middleware/handleValidationResult";
const userRouter = Router();
userRouter.get(
"/api/user/",
validateToken,
userControllers.showCurrentUserController
);
userRouter.put(
"/api/user/",
handleValidationResult,
validateToken,
userControllers.updateCurrentUser
);
export default userRouter;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment