pr_01m47d15m3e54sn21z27rpy5n9/apps/web/app/routes/status-json.ts

10 lines366 bytesCodeBlame
1/**
2 * The live status as JSON: what /status shows and what the footer's dot
3 * is coloured by. Public, with no viewer in it, so browsers and the edge
4 * may keep it for a minute.
5 */
6import { STATUS_HEADERS, currentStatus } from "../lib/status.server";
7
8export async function loader() {
9 return Response.json(await currentStatus(), { headers: STATUS_HEADERS });
10}