Feature: Support account/inbox specific webhooks (#562)
This commit is contained in:
9
app/views/api/v1/account/webhooks/_webhook.json.jbuilder
Normal file
9
app/views/api/v1/account/webhooks/_webhook.json.jbuilder
Normal file
@@ -0,0 +1,9 @@
|
||||
json.id webhook.id
|
||||
json.url webhook.url
|
||||
json.account_id webhook.account_id
|
||||
if webhook.inbox
|
||||
json.inbox do
|
||||
json.id webhook.inbox.id
|
||||
json.name webhook.inbox.name
|
||||
end
|
||||
end
|
||||
@@ -1,7 +0,0 @@
|
||||
json.id webhook.id
|
||||
json.urls webhook.urls
|
||||
json.account_id webhook.account_id
|
||||
json.inbox do
|
||||
json.id webhook.inbox.id
|
||||
json.name webhook.inbox.name
|
||||
end
|
||||
Reference in New Issue
Block a user