(path: string, body?: unknown)
| 90 | } |
| 91 | |
| 92 | export function apiPost<T>(path: string, body?: unknown): Promise<T> { |
| 93 | return request<T>(path, { |
| 94 | method: "POST", |
| 95 | body: body === undefined ? undefined : JSON.stringify(body), |
| 96 | }); |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Auth request: POSTs with `credentials:"include"` so the httpOnly refresh |
no test coverage detected