feat(channels): align whatsapp calls api
This commit is contained in:
@@ -682,6 +682,14 @@ func registerV1Routes(g *gin.RouterGroup, h *Handlers) {
|
||||
// Bulk actions for conversations/contacts (ref: Chatwoot bulk_actions_controller.rb)
|
||||
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.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)
|
||||
|
||||
// Account members (ref: Chatwoot namespace :account_users)
|
||||
accounts.GET("/:account_id/users", h.Account.ListUsers)
|
||||
accounts.POST("/:account_id/users", h.Account.AddUser)
|
||||
|
||||
Reference in New Issue
Block a user