MCPcopy Create free account
hub / github.com/msgbyte/tailchat / fetchGlobalClientConfig

Function fetchGlobalClientConfig

client/shared/model/config.ts:85–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85export async function fetchGlobalClientConfig(): Promise<GlobalConfig> {
86 const { data: config } = await request.get('/api/config/client');
87
88 useGlobalConfigStore.setState({
89 ...defaultGlobalConfig,
90 ...config,
91 });
92
93 return config;
94}

Callers 1

init.tsxFile · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected