Add user profile retrieval function
This commit is contained in:
@@ -32,6 +32,12 @@ router.post(
|
||||
userController.verifyEmail
|
||||
);
|
||||
|
||||
router.get(
|
||||
"/profile",
|
||||
authenticate,
|
||||
userController.userProfile
|
||||
);
|
||||
|
||||
router.get(
|
||||
"/",
|
||||
authenticate,
|
||||
@@ -39,12 +45,12 @@ router.get(
|
||||
userController.getAllUsers
|
||||
);
|
||||
|
||||
router.get(
|
||||
"/:id",
|
||||
authenticate,
|
||||
authorizedAccountType(["admin", "management", "team_head", "user"]),
|
||||
userController.getUserById
|
||||
);
|
||||
// router.get(
|
||||
// "/:id",
|
||||
// authenticate,
|
||||
// authorizedAccountType(["admin", "management", "team_head", "user"]),
|
||||
// userController.getUserById
|
||||
// );
|
||||
|
||||
router.patch(
|
||||
"/:id",
|
||||
|
||||
Reference in New Issue
Block a user