Add user profile retrieval function

This commit is contained in:
Isuru Bimsara
2026-08-21 11:44:00 +05:30
parent 6a4fe852e5
commit 2a35d86ebf
4 changed files with 156 additions and 109 deletions
+12 -6
View File
@@ -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",