remove userId param from routes

This commit is contained in:
Alex Holliday committed 2025-07-21 11:05:48 -07:00
1 parent 12b7819791
commit e2ddffe24b
4 files changed
+38 -38

No files matched your search

+3 -2
View File
@@ -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() {