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 }) => {