()
| 328 | } |
| 329 | |
| 330 | export 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 | |
| 343 | export interface RecentRequest { |
| 344 | request_id: string; |
no test coverage detected