MCPcopy Create free account
hub / github.com/Lakr233/AssppWeb / apiDelete

Function apiDelete

frontend/src/api/client.ts:28–34  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

26}
27
28export 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}

Callers 2

deleteDownloadFunction · 0.90
client.test.tsFile · 0.90

Calls 3

fetchFunction · 0.85
authHeadersFunction · 0.85
textMethod · 0.80

Tested by

no test coverage detected