mirror of
https://github.com/fatedier/frp.git
synced 2026-03-18 15:59:16 +08:00
web/frpc: redesign frpc dashboard with sidebar nav, proxy/visitor list and detail views (#5237)
This commit is contained in:
@@ -5,7 +5,7 @@ import type {
|
||||
ProxyDefinition,
|
||||
VisitorListResp,
|
||||
VisitorDefinition,
|
||||
} from '../types/proxy'
|
||||
} from '../types'
|
||||
|
||||
export const getStatus = () => {
|
||||
return http.get<StatusResponse>('/api/status')
|
||||
@@ -23,6 +23,19 @@ export const reloadConfig = () => {
|
||||
return http.get<void>('/api/reload')
|
||||
}
|
||||
|
||||
// Config lookup API (any source)
|
||||
export const getProxyConfig = (name: string) => {
|
||||
return http.get<ProxyDefinition>(
|
||||
`/api/proxy/${encodeURIComponent(name)}/config`,
|
||||
)
|
||||
}
|
||||
|
||||
export const getVisitorConfig = (name: string) => {
|
||||
return http.get<VisitorDefinition>(
|
||||
`/api/visitor/${encodeURIComponent(name)}/config`,
|
||||
)
|
||||
}
|
||||
|
||||
// Store API - Proxies
|
||||
export const listStoreProxies = () => {
|
||||
return http.get<ProxyListResp>('/api/store/proxies')
|
||||
|
||||
Reference in New Issue
Block a user