新增:webhook type类型

This commit is contained in:
2022-08-03 14:20:25 +08:00
parent ab5d273f98
commit fea11bdc2e
7 changed files with 26 additions and 6 deletions
@@ -1,3 +1,3 @@
json.(webhook, :id, :url, :http_method, :is_active)
json.(webhook, :id, :url, :http_method, :is_active, :type)
json.last_status webhook.last_status
json.create_time Time.at(webhook.created_unix).strftime("%Y-%m-%d %H:%M:%S")
@@ -1,4 +1,5 @@
json.id webhook["id"]
json.type webhook["type"]
json.content_type webhook['config']['content_type']
json.http_method webhook['config']['http_method']
json.url webhook['config']['url']