feat: add health check endpoint using Hono framework

This commit is contained in:
ngc2207 2025-01-29 21:53:47 +08:00
parent a6c4e47295
commit 989f4b4354

View File

@ -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);