MCPcopy Create free account
hub / github.com/acking-you/static_flow / adminCancelTask

Function adminCancelTask

crates/frontend/gpt2api-app/src/api.ts:205–210  ·  view source on GitHub ↗
(key: string, taskId: string)

Source from the content-addressed store, hash-verified

203}
204
205export function adminCancelTask(key: string, taskId: string) {
206 return fetchJson<{ cancelled: boolean }>(`/admin/tasks/${encodeURIComponent(taskId)}/cancel`, key, {
207 method: "POST",
208 body: "{}",
209 });
210}
211
212export function adminKeys(key: string) {
213 return fetchJson<ProductKey[]>("/admin/keys", key);

Callers 1

AdminPanelFunction · 0.90

Calls 1

fetchJsonFunction · 0.85

Tested by

no test coverage detected