// init.js — central API initializer (OPTIONAL; not used in UI-driven mode)
import * as Jamaah from "./jamaah.js";
import * as Keu from "./keuangan.js";
import * as Sumber from "./sumberdaya.js";

// If you ever want a single place to warm endpoints, you can call this
export function initAPIs() {
  // initial warming
  Jamaah.fetchJamaah().catch(()=>{});
  Keu.fetchKeuangan().catch(()=>{});
  Sumber.fetchSumberDaya().catch(()=>{});

  // lightweight polling (disabled by default since UI handles polling)
  // setInterval(() => { Jamaah.fetchJamaah().catch(()=>{}); Keu.fetchKeuangan().catch(()=>{}); }, 15000);
}
