fix(calendar): nest routes under /channels for correct URL matching

This commit is contained in:
2026-07-09 14:43:34 -04:00
parent 9a6f15662b
commit bbd9a6c264
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -243,6 +243,11 @@ func main() {
notification.NewHandler(database.DB, logger).RegisterRoutes(r)
})
// Calendar events (top-level so frontend can reach /channels/{id}/events)
r.Route("/channels", func(r chi.Router) {
channel.NewHandler(database.DB, permissionsChecker).RegisterCalendarRoutes(r)
})
// Push notifications
pushHandler.RegisterRoutes(r)