From 033b8c92f43ae333a8d691a0eb110b789088fbb7 Mon Sep 17 00:00:00 2001 From: oleh1010 <167109478+oleh1010@users.noreply.github.com> Date: Mon, 17 Jun 2024 13:50:12 +0200 Subject: [PATCH] Update userRoutes.js allusers not require the middleware --- server/src/routes/adminRoutes/userRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/adminRoutes/userRoutes.js b/server/src/routes/adminRoutes/userRoutes.js index 02bb3c3..58548de 100644 --- a/server/src/routes/adminRoutes/userRoutes.js +++ b/server/src/routes/adminRoutes/userRoutes.js @@ -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);