MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / resetRoutingConfig

Function resetRoutingConfig

frontend/dashboard/src/api.ts:330–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328}
329
330export async function resetRoutingConfig(): Promise<RoutingConfigState | null> {
331 try {
332 const res = await fetch("/v1/routing-config", {
333 method: "POST",
334 headers: { "Content-Type": "application/json" },
335 body: JSON.stringify({ action: "reset" }),
336 });
337 return res.ok ? ((await res.json()) as RoutingConfigState) : null;
338 } catch {
339 return null;
340 }
341}
342
343export interface RecentRequest {
344 request_id: string;

Callers 1

handleResetFunction · 0.90

Calls 1

stringifyMethod · 0.80

Tested by

no test coverage detected