mirror of
https://github.com/langgenius/dify.git
synced 2026-05-24 19:07:53 +08:00
Single bearer-accepting run route on the openapi namespace. Server reads apps.mode after AppResolver and dispatches via the _DISPATCH table to the per-mode helper. Per-mode constraints enforced inside helpers (422). Service-API /v1/* per-mode routes untouched. Also fixes a pre-existing latent bug in the openapi integration fixtures: App() rows were constructed without enable_site, which DB INSERT rejected (column is NOT NULL with no default). Now set enable_site=True alongside enable_api=True in the three fixtures that construct App() rows.