mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2025-07-04 15:32:09 +00:00
feat: add health check endpoint using Hono framework
This commit is contained in:
parent
a6c4e47295
commit
989f4b4354
10
src/app/api/[[...route]]/route.ts
Normal file
10
src/app/api/[[...route]]/route.ts
Normal 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);
|
Loading…
Reference in New Issue
Block a user