Use POST for MCP server refresh flow

This commit is contained in:
-LAN-
2025-09-27 02:09:30 +08:00
parent be13f79696
commit 695d89ef2d
3 changed files with 96 additions and 2 deletions

View File

@ -250,7 +250,9 @@ export const useRefreshMCPServerCode = () => {
return useMutation({
mutationKey: [NAME_SPACE, 'refresh-mcp-server-code'],
mutationFn: (appID: string) => {
return get<MCPServerDetail>(`apps/${appID}/server/refresh`)
return post<MCPServerDetail>(`apps/${appID}/server/refresh`, {
body: {},
})
},
})
}