mirror of
https://github.com/fatedier/frp.git
synced 2026-03-18 15:59:16 +08:00
11 lines
281 B
TypeScript
11 lines
281 B
TypeScript
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}`)
|
|
}
|