Skip to content

Commit

Permalink
refactor: profileUpdate route
Browse files Browse the repository at this point in the history
  • Loading branch information
SySagar committed Feb 25, 2024
1 parent c6abe91 commit f1e5572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ prisma/client
*.tfstate.*
.terraform/
.terraform.lock.*
courageous-chinchilla credentials.txt
brave-chipmunk credentials.txt
2 changes: 1 addition & 1 deletion src/app/user/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ router.post('/login', loginUserController)
router.get('/', authorize([Role.Admin, Role.Member]), getUserInfoController)
router.get('/all', getAllMembersController)
router.get('/:username', getMemberProfileController)
router.put('/profile', authorize([Role.Admin, Role.Member]), updatedProfileController)
router.put('/profileUpdate', authorize([Role.Admin, Role.Member]), updatedProfileController)
router.put('/profile-pic', authorize([Role.Admin, Role.Member]), upload.single('avatar'), uploadProfilePicController)

export default router

0 comments on commit f1e5572

Please sign in to comment.