fix(calendar): use r.Route subrouter to avoid chi path ambiguity with /channels/events/{eventID}
This commit is contained in:
@@ -39,7 +39,7 @@ type createEventRequest struct {
|
||||
Color *string `json:"color"`
|
||||
}
|
||||
|
||||
func (h *Handler) registerCalendarRoutes(r chi.Router) {
|
||||
func (h *Handler) RegisterCalendarRoutes(r chi.Router) {
|
||||
r.Get("/{channelID}/events", h.ListEvents)
|
||||
r.Post("/{channelID}/events", h.CreateEvent)
|
||||
r.Patch("/events/{eventID}", h.UpdateEvent)
|
||||
|
||||
Reference in New Issue
Block a user