Skip to content

Commit

Permalink
main -> summer-demo (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley authored Jun 20, 2024
1 parent f9333ae commit b89ae39
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/entities/events/rsvps/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

0 comments on commit b89ae39

Please sign in to comment.