mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
Use POST for MCP server refresh flow
This commit is contained in:
@ -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: {},
|
||||
})
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user