(path: string)
| 26 | } |
| 27 | |
| 28 | export async function apiDelete(path: string): Promise<void> { |
| 29 | const res = await fetch(`${BASE_URL}${path}`, { |
| 30 | method: "DELETE", |
| 31 | headers: authHeaders(), |
| 32 | }); |
| 33 | if (!res.ok) throw new Error(await res.text()); |
| 34 | } |
no test coverage detected