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}`)
|
|
}
|