09404db559
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
702 B
JavaScript
20 lines
702 B
JavaScript
export const name = "McGraw Hill";
|
|
export const url = "https://connected.mcgraw-hill.com/connected/permLinkLogin.do";
|
|
|
|
// status.mcgrawhill.com is a JS-rendered page with no accessible API.
|
|
// Synthetic check against the ConnectED portal instead.
|
|
const PROBE_URL = "https://connected.mcgraw-hill.com/connected/permLinkLogin.do";
|
|
|
|
export async function checkStatus() {
|
|
const res = await fetch(PROBE_URL, { method: "HEAD" });
|
|
|
|
return {
|
|
name,
|
|
status: res.ok ? "operational" : "degraded",
|
|
message: res.ok
|
|
? `ConnectED portal responding (HTTP ${res.status}).`
|
|
: `Unexpected response from ConnectED portal (HTTP ${res.status}).`,
|
|
lastUpdated: new Date().toISOString(),
|
|
};
|
|
}
|