From 989f4b4354ec16ed68e9f624d2c7740d9c84439a Mon Sep 17 00:00:00 2001 From: ngc2207 Date: Wed, 29 Jan 2025 21:53:47 +0800 Subject: [PATCH] feat: add health check endpoint using Hono framework --- src/app/api/[[...route]]/route.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/app/api/[[...route]]/route.ts diff --git a/src/app/api/[[...route]]/route.ts b/src/app/api/[[...route]]/route.ts new file mode 100644 index 0000000..9f3733f --- /dev/null +++ b/src/app/api/[[...route]]/route.ts @@ -0,0 +1,10 @@ +import { Hono } from "hono"; +import { handle } from "hono/vercel"; + +const app = new Hono().basePath("/api"); + +app.get("/health", (context) => { + return context.json({ status: "ok" }); +}); + +export const GET = handle(app);