From b89ae393400863f57b9d161c738e18f840655161 Mon Sep 17 00:00:00 2001 From: Garrett Ladley <92384606+garrettladley@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:00:38 -0400 Subject: [PATCH] main -> summer-demo (#1066) --- backend/entities/events/rsvps/routes.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/entities/events/rsvps/routes.go b/backend/entities/events/rsvps/routes.go index a78b3308..681a8154 100644 --- a/backend/entities/events/rsvps/routes.go +++ b/backend/entities/events/rsvps/routes.go @@ -8,9 +8,9 @@ func EventsRSVPs(params types.RouteParams) { controller := NewController(NewHandler(params.ServiceParams)) // api/v1/events/:eventID/rsvps/* - eventRSVPS := params.Router.Group("/:eventID/rsvps") - - eventRSVPS.Get("/", params.UtilityMiddleware.Paginator, controller.GetEventRSVPs) - eventRSVPS.Post("/:userID", params.AuthMiddleware.UserAuthorizeById, controller.CreateEventRSVP) - eventRSVPS.Delete("/:userID", params.AuthMiddleware.UserAuthorizeById, controller.DeleteEventRSVP) + params.Router.Route("/:eventID/rsvps", func(r fiber.Router) { + r.Get("/", params.UtilityMiddleware.Paginator, controller.GetEventRSVPs) + r.Post("/:userID", controller.CreateEventRSVP) + r.Delete("/:userID", params.AuthMiddleware.UserAuthorizeById, params.AuthMiddleware.Authorize(permission.DeleteAll), controller.DeleteEventRSVP) + }) }