Files
Azornes-Comfyui-LayerForge/js/utils/MattingUtils.js
T

9 lines
304 B
JavaScript

export async function fetchMattingModelStatus(modelPath) {
const query = modelPath
? `?model_path=${encodeURIComponent(modelPath)}`
: '';
const response = await fetch(`/matting/check-model${query}`);
const data = await response.json();
return { ok: response.ok, data };
}