Files

20 lines
663 B
JavaScript

export const name = "ClassDojo";
export const url = "https://status.classdojo.com/";
// No public JSON status API — status page is a manually-updated static HTML file.
// Synthetic check against the main app; link to status page for incident details.
const PROBE_URL = "https://www.classdojo.com/";
export async function checkStatus() {
const res = await fetch(PROBE_URL, { method: "HEAD" });
return {
name,
status: res.ok ? "operational" : "degraded",
message: res.ok
? `App portal responding (HTTP ${res.status}).`
: `Unexpected response from app portal (HTTP ${res.status}).`,
lastUpdated: new Date().toISOString(),
};
}