feat(webhooks): align account payloads

This commit is contained in:
2026-06-06 06:26:30 +08:00
parent 1adf1c9c31
commit 02ea135e0c
13 changed files with 495 additions and 94 deletions
+1
View File
@@ -554,6 +554,7 @@ func registerV1Routes(g *gin.RouterGroup, h *Handlers) {
g.POST("/accounts/:account_id/webhooks", h.WebhookSubscription.Create)
g.GET("/accounts/:account_id/webhooks/:webhook_id", h.WebhookSubscription.Get)
g.PUT("/accounts/:account_id/webhooks/:webhook_id", h.WebhookSubscription.Update)
g.PATCH("/accounts/:account_id/webhooks/:webhook_id", h.WebhookSubscription.Update)
g.DELETE("/accounts/:account_id/webhooks/:webhook_id", h.WebhookSubscription.Delete)
// Account routes — scoped with AccountScope middleware (ref: Chatwoot namespace :accounts)