fix: resolve duplicate path prefix issues for message and webhook routes

This commit is contained in:
root
2026-06-29 17:48:28 +00:00
parent de465c6527
commit bb67a7652e
3 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ func NewHandler(db *sql.DB, hub *gateway.Hub, pushHandler *push.Handler, logger
}
func (h *Handler) RegisterRoutes(r chi.Router) {
r.Get("/{channelID}/messages", h.List)
r.Post("/{channelID}/messages", h.Create)
r.Get("/", h.List)
r.Post("/", h.Create)
r.Patch("/{messageID}", h.Update)
r.Delete("/{messageID}", h.Delete)
}