Skip to content

Commit

Permalink
Update userRoutes.js
Browse files Browse the repository at this point in the history
allusers not require the middleware
  • Loading branch information
oleh1010 authored Jun 17, 2024
1 parent 6212ca6 commit 033b8c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/routes/adminRoutes/userRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const passport = require("passport");
const middleware = passport.authenticate("jwt", { session: false });

// Admin - Users
router.get("/all", middleware, userManageCtrl.allUser);
router.get("/all", userManageCtrl.allUser);
router.put("/role/:id", middleware, userManageCtrl.permissionUser);
router.delete("/:id", middleware, userManageCtrl.delUser);

Expand Down

0 comments on commit 033b8c9

Please sign in to comment.