diff --git a/routes/AdminUsersEndpoint.js b/routes/AdminUsersEndpoint.js index 2a80a3a..98b87b0 100644 --- a/routes/AdminUsersEndpoint.js +++ b/routes/AdminUsersEndpoint.js @@ -99,7 +99,7 @@ router.post( ); router.put( - ":/id", + "/:id", [AuthenticateUser, CheckAdminUser], async (request, response) => { const UpdateEvent = await Events.findByIdAndUpdate(