remove userId param from routes
This commit is contained in:
1 parent
12b7819791
commit
e2ddffe24b
4 files changed
+38
-38
No files matched your search
@@ -23,10 +23,11 @@ class AuthRoutes {
|
||||
this.router.post("/recovery/reset/", this.authController.resetPassword);
|
||||
|
||||
this.router.get("/users/superadmin", this.authController.checkSuperadminExists);
|
||||
|
||||
this.router.get("/users", verifyJWT, isAllowed(["admin", "superadmin"]), this.authController.getAllUsers);
|
||||
|
||||
this.router.put("/user/:userId", verifyJWT, upload.single("profileImage"), this.authController.editUser);
|
||||
this.router.delete("/user/:userId", verifyJWT, verifyOwnership(User, "userId"), this.authController.deleteUser);
|
||||
this.router.put("/user", verifyJWT, upload.single("profileImage"), this.authController.editUser);
|
||||
this.router.delete("/user", verifyJWT, this.authController.deleteUser);
|
||||
}
|
||||
|
||||
getRouter() {
|
||||
|
||||
Reference in new issue
Block a user