From db2a03b192876ca883e95c1ac1e6c647d7f0e5c1 Mon Sep 17 00:00:00 2001 From: lloydrichards Date: Sun, 27 Oct 2024 18:17:01 +0100 Subject: [PATCH] feat(routing): :sparkles: add healthcheck api --- src/app/api/healthcheck/route.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/app/api/healthcheck/route.ts diff --git a/src/app/api/healthcheck/route.ts b/src/app/api/healthcheck/route.ts new file mode 100644 index 0000000..b979ccd --- /dev/null +++ b/src/app/api/healthcheck/route.ts @@ -0,0 +1,5 @@ +export const revalidate = 0; + +export async function GET() { + return Response.json({ status: "ok", timestamp: new Date().toISOString() }); +}