mirror of https://github.com/langgenius/dify.git
fix(workflow): update API route for DraftWorkflowTriggerRunApi
- Changed the route from "/apps/<uuid:app_id>/workflows/draft/trigger/run" to "/apps/<uuid:app_id>/workflows/draft/trigger/plugin/run" to reflect the new plugin-based trigger structure. - Updated corresponding URL in the useWorkflowRun hook to maintain consistency across the application.
This commit is contained in:
parent
31c9d9da3f
commit
0c65824cad
|
|
@ -1081,7 +1081,7 @@ class DraftWorkflowTriggerNodeApi(Resource):
|
|||
), 500
|
||||
|
||||
|
||||
@console_ns.route("/apps/<uuid:app_id>/workflows/draft/trigger/run")
|
||||
@console_ns.route("/apps/<uuid:app_id>/workflows/draft/trigger/plugin/run")
|
||||
class DraftWorkflowTriggerRunApi(Resource):
|
||||
"""
|
||||
Full workflow debug - Polling API for trigger events
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ export const useWorkflowRun = () => {
|
|||
console.error('handleRun: missing app id for trigger plugin run')
|
||||
return
|
||||
}
|
||||
url = `/apps/${appDetail.id}/workflows/draft/trigger/run`
|
||||
url = `/apps/${appDetail.id}/workflows/draft/trigger/plugin/run`
|
||||
}
|
||||
else if (appDetail?.mode === 'advanced-chat') {
|
||||
url = `/apps/${appDetail.id}/advanced-chat/workflows/draft/run`
|
||||
|
|
|
|||
Loading…
Reference in New Issue