(code: string)
| 61 | } |
| 62 | |
| 63 | export async function pairBrowser(code: string): Promise<void> { |
| 64 | await apiRequest<{ ok: boolean }>("/api/pair", { |
| 65 | body: JSON.stringify({ code }), |
| 66 | method: "POST", |
| 67 | }); |
| 68 | } |
| 69 | |
| 70 | export async function fetchHealth(): Promise<HealthResponse> { |
| 71 | return apiRequest<HealthResponse>("/api/health"); |