fix(trigger): Update API routes for draft workflow trigger

- Changed the endpoint for triggering draft workflows from `/trigger/plugin/run` to `/trigger/run` in both backend and frontend to ensure consistency and clarity in the API structure.
- Adjusted the URL construction in the `useWorkflowRun` hook to reflect the updated route.
This commit is contained in:
Harry 2025-10-15 14:44:00 +08:00
parent 06c91fbcbd
commit 8f7bef9509
2 changed files with 2 additions and 2 deletions

View File

@ -1077,7 +1077,7 @@ class DraftWorkflowTriggerNodeApi(Resource):
), 500
@console_ns.route("/apps/<uuid:app_id>/workflows/draft/trigger/plugin/run")
@console_ns.route("/apps/<uuid:app_id>/workflows/draft/trigger/run")
class DraftWorkflowTriggerRunApi(Resource):
"""
Full workflow debug - Polling API for trigger events

View File

@ -175,7 +175,7 @@ export const useWorkflowRun = () => {
console.error('handleRun: missing app id for trigger plugin run')
return
}
url = `/apps/${appDetail.id}/workflows/draft/trigger/plugin/run`
url = `/apps/${appDetail.id}/workflows/draft/trigger/run`
}
else if (appDetail?.mode === 'advanced-chat') {
url = `/apps/${appDetail.id}/advanced-chat/workflows/draft/run`