// keuangan.js — fetch keuangan summary
import { getJSON } from "../helpers/http.js";

const BASE = window.API_BASE || "/sistem_informasi_masjid/pages/web_monitoring/php/";
const ENDPOINT = `${BASE}get_keuangan.php`;

export async function fetchKeuangan() {
  try {
    const data = await getJSON(ENDPOINT);
    return data;
  } catch (err) {
    console.error("fetchKeuangan error", err);
    return null;
  }
}
