Menu
Public repository / 7e151d05ebb2cc20f1fd7b8b22d5d4a016bb8f7d
AkurAI-Framework / site/frontend/app.js
Latest change 4052fe38094b95ffabeaa0959c653900e383f343 - feat: markdown engine + authentic framework site (landing/docs/changelog/components) by Ólafur Búi Ólafsson
// Native ES module — no bundler. Pings the framework's health endpoint.
const el = document.getElementById("health");
if (el) {
fetch("/api/health", { headers: { accept: "application/json" } })
.then((r) => (r.ok ? r.json() : Promise.reject(new Error(`status ${r.status}`))))
.then((d) => {
el.textContent = `server up · ${d.framework} ${d.version}`;
el.classList.add("ok");
})
.catch((e) => (el.textContent = `server unreachable: ${e.message}`));
}