// data.js (API слой)
export async function fetchHealth() {
    const r = await fetch("/api/health");
    return r.json();
}

export async function fetchHistory() {
    const r = await fetch("/api/history");
    return r.json();
}
