feat(v3): simplify the project to contain only required tools

This commit is contained in:
2026-07-09 04:02:31 +03:30
parent 20a43d5c9a
commit 2112e00982
19 changed files with 482 additions and 508 deletions

View File

@@ -51,6 +51,14 @@ export async function getStateHistogram(stateId) {
return parseResponse(response);
}
export async function deleteState(stateId) {
const response = await fetch(`${API_BASE}/api/states/${stateId}/`, {
method: "DELETE"
});
if (response.status === 204) return {};
return parseResponse(response);
}
export async function processImage(sessionId, operation, params) {
const response = await fetch(`${API_BASE}/api/process/`, {
method: "POST",