fix(calendar): use r.Route subrouter to avoid chi path ambiguity with /channels/events/{eventID}

This commit is contained in:
2026-07-09 14:43:34 -04:00
parent 9a6f15662b
commit af913b9923
4 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -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)