MCPcopy
hub / github.com/HisMax/RedInk / getConfig

Function getConfig

frontend/src/api/config.ts:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import type { AppError } from '../utils/errors'
5
6export async function getConfig(): Promise<{
7 success: boolean
8 config?: Config
9 error?: AppError | string
10 error_message?: string
11}> {
12 const response = await axios.get(`${API_BASE_URL}/config`)
13 return response.data
14}
15
16export async function updateConfig(config: Partial<Config>): Promise<{
17 success: boolean

Callers 1

loadConfigFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected