feat(v3): simplify the project to contain only required tools
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user