- Remove most type assertions and improve types - Validate wordCount property - Add "Vore Day" tag - Add licenses
12 lines
331 B
TypeScript
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 });
|
|
};
|