Fix incorrect API endpoint routing from PR #25628 #17515

Closed
opened 2026-02-21 19:36:18 -05:00 by yindo · 0 comments
Owner

Originally created by @laipz8200 on GitHub (Sep 16, 2025).

Originally assigned to: @laipz8200 on GitHub.

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Latest main branch

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

The recent PR #25628 introduced routing issues in the workflow API endpoints:

  1. The endpoint /apps/<uuid:app_id>/workflows/default-block-configs was incorrectly named
  2. The duplicate route decorator for /apps/<uuid:app_id>/workflows/config endpoint causes routing conflicts

✔️ Expected Behavior

  • The endpoint should be correctly named as /apps/<uuid:app_id>/workflows/default-workflow-block-configs
  • The WorkflowConfigApi should have both /apps/<uuid:app_id>/workflows/config and /apps/<uuid:app_id>/workflows/draft/config routes properly configured

Actual Behavior

  • The endpoint is incorrectly named as default-block-configs instead of default-workflow-block-configs
  • The route decorators may cause conflicts or unexpected behavior
Originally created by @laipz8200 on GitHub (Sep 16, 2025). Originally assigned to: @laipz8200 on GitHub. ## Self Checks - [x] I have read the Contributing Guide and Language Policy. - [x] This is only for bug report, if you would like to ask a question, please head to Discussions. - [x] I have searched for existing issues, including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ## Dify version Latest main branch ## Cloud or Self Hosted Self Hosted (Source) ## Steps to reproduce The recent PR #25628 introduced routing issues in the workflow API endpoints: 1. The endpoint `/apps/<uuid:app_id>/workflows/default-block-configs` was incorrectly named 2. The duplicate route decorator for `/apps/<uuid:app_id>/workflows/config` endpoint causes routing conflicts ## ✔️ Expected Behavior - The endpoint should be correctly named as `/apps/<uuid:app_id>/workflows/default-workflow-block-configs` - The WorkflowConfigApi should have both `/apps/<uuid:app_id>/workflows/config` and `/apps/<uuid:app_id>/workflows/draft/config` routes properly configured ## ❌ Actual Behavior - The endpoint is incorrectly named as `default-block-configs` instead of `default-workflow-block-configs` - The route decorators may cause conflicts or unexpected behavior
yindo added the 🐞 bug label 2026-02-21 19:36:18 -05:00
yindo closed this issue 2026-02-21 19:36:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#17515