gallery.badmanners.xyz/src/pages/api/healthcheck.ts
Bad Manners fe908a4989 Add "Playing It Safe" draft and improve type-checking
- Remove most type assertions and improve types
- Validate wordCount property
- Add "Vore Day" tag
- Add licenses
2024-08-03 20:33:49 -03:00

12 lines
331 B
TypeScript

import type { APIRoute } from "astro";
const content = { isAlive: true };
const headers = { "Content-Type": "application/json; charset=utf-8" };
export const GET: APIRoute = () => {
if (import.meta.env.PROD) {
return new Response(null, { status: 404 });
}
return new Response(JSON.stringify(content), { headers });
};