Add frps proxy traffic API v2

This commit is contained in:
fatedier
2026-07-08 01:46:37 +08:00
parent 5cd722b177
commit ad5ebc0017
7 changed files with 280 additions and 49 deletions

View File

@@ -68,7 +68,9 @@ export const getProxyByName = (name: string) => {
}
export const getProxyTraffic = (name: string) => {
return http.get<TrafficResponse>(`../api/traffic/${name}`)
return http.getV2<TrafficResponse>(
`../api/v2/proxies/${encodeURIComponent(name)}/traffic`,
)
}
export const clearOfflineProxies = () => {