mirror of
https://github.com/langgenius/dify.git
synced 2025-12-28 10:32:31 +00:00
fix: change TenantApi endpoint from GET to POST (#27858)
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
parent
e8d03a422d
commit
c432f601ab
@ -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.")
|
||||
|
||||
|
||||
@ -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 }) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user