mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
refactor: unify trigger node architecture and clean up technical debt (#24886)
Co-authored-by: hjlarry <hjlarry@163.com> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@ -48,7 +48,7 @@ class WebhookData(BaseNodeData):
|
||||
SYNC = "async" # only support
|
||||
|
||||
method: Method = Method.GET
|
||||
content_type: ContentType = Field(alias="content-type", default=ContentType.JSON)
|
||||
content_type: ContentType = Field(default=ContentType.JSON)
|
||||
headers: Sequence[WebhookParameter] = Field(default_factory=list)
|
||||
params: Sequence[WebhookParameter] = Field(default_factory=list) # query parameters
|
||||
body: Sequence[WebhookBodyParameter] = Field(default_factory=list)
|
||||
|
||||
@ -42,7 +42,7 @@ class TriggerWebhookNode(BaseNode):
|
||||
"type": "webhook",
|
||||
"config": {
|
||||
"method": "get",
|
||||
"content-type": "application/json",
|
||||
"content_type": "application/json",
|
||||
"headers": [],
|
||||
"params": [],
|
||||
"body": [],
|
||||
|
||||
Reference in New Issue
Block a user