From d67001a1d76f5b4004ee769808991348b9208b14 Mon Sep 17 00:00:00 2001 From: garrettladley Date: Thu, 20 Jun 2024 15:58:08 -0400 Subject: [PATCH] =?UTF-8?q?=E2=98=A2=EF=B8=8F=20bug:=20rsvp=20routing=20bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/entities/events/rsvps/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/entities/events/rsvps/routes.go b/backend/entities/events/rsvps/routes.go index c36d5eca..4a0d999b 100644 --- a/backend/entities/events/rsvps/routes.go +++ b/backend/entities/events/rsvps/routes.go @@ -10,7 +10,7 @@ func EventsRSVPs(params types.RouteParams) { controller := NewController(NewHandler(params.ServiceParams)) // api/v1/events/:eventID/rsvps/* - params.Router.Route("/rsvps", func(r fiber.Router) { + 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)