mirror of
https://github.com/fatedier/frp.git
synced 2026-03-19 00:09:14 +08:00
server: add client registry with dashboard support (#5115)
This commit is contained in:
10
web/frps/src/api/client.ts
Normal file
10
web/frps/src/api/client.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { http } from './http'
|
||||
import type { ClientInfoData } from '../types/client'
|
||||
|
||||
export const getClients = () => {
|
||||
return http.get<ClientInfoData[]>('../api/clients')
|
||||
}
|
||||
|
||||
export const getClient = (key: string) => {
|
||||
return http.get<ClientInfoData>(`../api/clients/${key}`)
|
||||
}
|
||||
Reference in New Issue
Block a user