mirror of
https://github.com/fatedier/frp.git
synced 2026-07-16 09:19:17 +08:00
Add frps proxy traffic API v2 (#5398)
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user