mirror of https://github.com/langgenius/dify.git
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:
parent
06c91fbcbd
commit
8f7bef9509
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Reference in New Issue