Skip to content

Commit

Permalink
☢️ bug: rsvp routing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Jun 20, 2024
1 parent e3f8575 commit d67001a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/entities/events/rsvps/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d67001a

Please sign in to comment.