9 lines
222 B
TypeScript
9 lines
222 B
TypeScript
import { apiClient } from './client'
|
|
import type { ConfigResponse } from '../types/api'
|
|
|
|
export const configAPI = {
|
|
async getConfig(): Promise<ConfigResponse> {
|
|
return apiClient.get<ConfigResponse>('/config')
|
|
},
|
|
}
|