MCPcopy Create free account
hub / github.com/aptabase/aptabase / put

Function put

src/webapp/fns/api.ts:63–68  ·  view source on GitHub ↗
(path: string, body?: any)

Source from the content-addressed store, hash-verified

61}
62
63async function put<T>(path: string, body?: any): Promise<T> {
64 const [status, response] = await _fetch("PUT", path, body);
65
66 await handleError(status, response);
67 return response.json() as Promise<T>;
68}
69
70async function _delete<T>(path: string): Promise<T> {
71 const [status, response] = await _fetch("DELETE", path);

Callers

nothing calls this directly

Calls 2

_fetchFunction · 0.85
handleErrorFunction · 0.70

Tested by

no test coverage detected