MCPcopy Index your code
hub / github.com/CommonstackAI/UncommonRoute / get

Function get

frontend/dashboard/src/api.ts:166–173  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

164}
165
166async function get<T>(path: string): Promise<T | null> {
167 try {
168 const res = await fetch(path);
169 return res.ok ? ((await res.json()) as T) : null;
170 } catch {
171 return null;
172 }
173}
174
175export const fetchHealth = () => get<Health>("/health");
176export const fetchConnections = () => get<ConnectionState>("/v1/connections");

Callers 11

fetchHealthFunction · 0.85
fetchConnectionsFunction · 0.85
fetchProvidersFunction · 0.85
fetchStatsFunction · 0.85
fetchMappingFunction · 0.85
fetchSpendFunction · 0.85
fetchRoutingConfigFunction · 0.85
fetchRecentFunction · 0.85
fetchTracesFunction · 0.85
fetchTraceDetailFunction · 0.85
fetchConversationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected