fix(routes): align whatsapp call ids

This commit is contained in:
2026-06-07 13:04:27 +08:00
parent 5062acec61
commit 7ea4bf9362
7 changed files with 53 additions and 51 deletions
+5 -5
View File
@@ -687,12 +687,12 @@ func registerV1Routes(g *gin.RouterGroup, h *Handlers) {
accounts.POST("/:account_id/bulk_actions", h.BulkAction.Create)
// Account WhatsApp calls (ref: Chatwoot enterprise whatsapp_calls_controller.rb)
accounts.GET("/:account_id/whatsapp_calls/:call_id", h.WhatsAppCall.Show)
accounts.GET("/:account_id/whatsapp_calls/:id", h.WhatsAppCall.Show)
accounts.POST("/:account_id/whatsapp_calls/initiate", h.WhatsAppCall.Initiate)
accounts.POST("/:account_id/whatsapp_calls/:call_id/accept", h.WhatsAppCall.Accept)
accounts.POST("/:account_id/whatsapp_calls/:call_id/reject", h.WhatsAppCall.Reject)
accounts.POST("/:account_id/whatsapp_calls/:call_id/terminate", h.WhatsAppCall.Terminate)
accounts.POST("/:account_id/whatsapp_calls/:call_id/upload_recording", h.WhatsAppCall.UploadRecording)
accounts.POST("/:account_id/whatsapp_calls/:id/accept", h.WhatsAppCall.Accept)
accounts.POST("/:account_id/whatsapp_calls/:id/reject", h.WhatsAppCall.Reject)
accounts.POST("/:account_id/whatsapp_calls/:id/terminate", h.WhatsAppCall.Terminate)
accounts.POST("/:account_id/whatsapp_calls/:id/upload_recording", h.WhatsAppCall.UploadRecording)
// Account members (ref: Chatwoot namespace :account_users)
accounts.GET("/:account_id/users", h.Account.ListUsers)