| 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 | */ |
| 6 | import { STATUS_HEADERS, currentStatus } from "../lib/status.server"; |
| 7 | |
| 8 | export async function loader() { |
| 9 | return Response.json(await currentStatus(), { headers: STATUS_HEADERS }); |
| 10 | } |