Skip to content

Commit 60175e7

Browse files
author
Your Name
committed
fix: solve the problem with delete and restore user Routes
1 parent ba2aa2e commit 60175e7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/routes/user.routes.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ router.patch(
4646
);
4747

4848
router.delete(
49-
'/users/:id',
49+
'/api/users/:id',
5050
verifyAccessToken,
5151
verifyAdminPermission,
5252
softDeleteUser,
5353
);
54+
5455
router.patch(
55-
'/users/restore/:id',
56+
'/api/users/restore/:id', // Added missing `/` at the beginning
5657
verifyAccessToken,
5758
verifyAdminPermission,
5859
restoreUser,
@@ -72,4 +73,5 @@ router.delete(
7273
verifyUserPermission,
7374
deleteUserProfilePic,
7475
);
76+
7577
export default router;

0 commit comments

Comments
 (0)