Skip to content

Commit 81a861f

Browse files
committed
fix route path registration
1 parent 73005c2 commit 81a861f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/serve_http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ func registerHandler(app app.App) *mux.Router {
195195
protectedV1AdminRoute.HandleFunc("/events/{id}", app.EventHandler.GetDetail).Methods(http.MethodGet)
196196
protectedV1AdminRoute.HandleFunc("/events/{id}", app.EventHandler.UpdateEvent).Methods(http.MethodPut)
197197
protectedV1AdminRoute.HandleFunc("/events/{id}", app.EventHandler.DeleteEvent).Methods(http.MethodDelete)
198-
protectedV1AdminRoute.HandleFunc("/events/{id}/registration", app.EventHandler.ListRegistrationByEvent).Methods(http.MethodGet)
199-
protectedV1AdminRoute.HandleFunc("/events/registration/{id}/status", app.EventHandler.UpdateRegistrationStatus).Methods(http.MethodPatch)
198+
protectedV1AdminRoute.HandleFunc("/events/{id}/registrations", app.EventHandler.ListRegistrationByEvent).Methods(http.MethodGet)
199+
protectedV1AdminRoute.HandleFunc("/events/registrations/{id}/status", app.EventHandler.UpdateRegistrationStatus).Methods(http.MethodPatch)
200200

201201
// users
202202
protectedV1AdminRoute.HandleFunc("/users", app.UserHandler.GetUsers).Methods(http.MethodGet)

0 commit comments

Comments
 (0)