fix: resolve duplicate path prefix issues for message and webhook routes
This commit is contained in:
@@ -29,9 +29,8 @@ func NewHandler(db *sql.DB, hub *gateway.Hub) *Handler {
|
||||
// GET /channels/{channelID}/webhooks - list webhooks for channel
|
||||
// DELETE /webhooks/{webhookID} - delete webhook
|
||||
func (h *Handler) RegisterRoutes(r chi.Router) {
|
||||
r.Post("/channels/{channelID}/webhooks", h.Create)
|
||||
r.Get("/channels/{channelID}/webhooks", h.List)
|
||||
r.Delete("/webhooks/{webhookID}", h.Delete)
|
||||
r.Post("/", h.Create)
|
||||
r.Get("/", h.List)
|
||||
}
|
||||
|
||||
// RegisterPublicRoutes registers the public webhook execution route (no auth).
|
||||
|
||||
Reference in New Issue
Block a user