fix: unify trigger url generation

This commit is contained in:
Yeuoly
2025-10-20 15:34:51 +08:00
parent fe0457b257
commit 538b639bef
5 changed files with 45 additions and 14 deletions

View File

@ -49,11 +49,6 @@ class WebhookTriggerApi(Resource):
if not webhook_trigger:
raise NotFound("Webhook trigger not found for this node")
# Add computed fields for marshal_with
base_url = dify_config.SERVICE_API_URL
webhook_trigger.webhook_url = f"{base_url}/triggers/webhook/{webhook_trigger.webhook_id}" # type: ignore
webhook_trigger.webhook_debug_url = f"{base_url}/triggers/webhook-debug/{webhook_trigger.webhook_id}" # type: ignore
return webhook_trigger