MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / load

Function load

ui/src/api/config.ts:5–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4export const configApi = {
5 async load(): Promise<AppConfig> {
6 const res = await fetch('/api/config')
7 if (!res.ok) throw new Error('Failed to load config')
8 return res.json()
9 },
10
11 async updateSection(section: string, data: unknown): Promise<unknown> {
12 const res = await fetch(`/api/config/${section}`, {

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected