From c432f601ab55cf54f37160a129e6d837ee73cb12 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Thu, 20 Nov 2025 11:22:37 +0800 Subject: [PATCH] fix: change TenantApi endpoint from GET to POST (#27858) Co-authored-by: Claude Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> --- api/controllers/console/workspace/workspace.py | 2 +- web/service/common.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/console/workspace/workspace.py b/api/controllers/console/workspace/workspace.py index f10c30db2e..1548a18b90 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 55dec33cb5..7a092a6a24 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 }> = ({ url, params }) => { - return get(url, { params }) + return post(url, { body: params }) } export const updateCurrentWorkspace: Fetcher }> = ({ url, body }) => {