Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: change TenantApi endpoint from GET to POST (#27858)

-LAN-c432f601ab55
diff --git a/api/controllers/console/workspace/workspace.py b/api/controllers/console/workspace/workspace.py
index f10c30db2e1..1548a18b901 100644
--- a/api/controllers/console/workspace/workspace.py
+++ b/api/controllers/console/workspace/workspace.py
@@ -128,7 +128,7 @@ class TenantApi(Resource):
@login_required
@account_initialization_required
@marshal_with(tenant_fields)
- def get(self):
+ def post(self):
if request.path == "/info":
logger.warning("Deprecated URL /info was used.")
diff --git a/web/service/common.ts b/web/service/common.ts
index 55dec33cb5b..7a092a6a24f 100644
--- a/web/service/common.ts
+++ b/web/service/common.ts
@@ -137,7 +137,7 @@ export const fetchFilePreview: Fetcher<{ content: string }, { fileID: string }>
}
export const fetchCurrentWorkspace: Fetcher<ICurrentWorkspace, { url: string; params: Record<string, any> }> = ({ url, params }) => {
- return get<ICurrentWorkspace>(url, { params })
+ return post<ICurrentWorkspace>(url, { body: params })
}
export const updateCurrentWorkspace: Fetcher<ICurrentWorkspace, { url: string; body: Record<string, any> }> = ({ url, body }) => {