From f144f1bcc21e20f29381aa5d69ed3f822dbaec9a Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Wed, 2 Jul 2025 00:13:33 +0000 Subject: refactor: Move the health endpoint to hono as well --- packages/api/routes/health.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/api/routes/health.ts (limited to 'packages/api/routes') diff --git a/packages/api/routes/health.ts b/packages/api/routes/health.ts new file mode 100644 index 00000000..64c2d45b --- /dev/null +++ b/packages/api/routes/health.ts @@ -0,0 +1,16 @@ +import { Hono } from "hono"; + +import { Context } from "@karakeep/trpc"; + +const health = new Hono<{ + Variables: { + ctx: Context; + }; +}>().get("/", (c) => { + return c.json({ + status: "ok", + message: "Web app is working", + }); +}); + +export default health; -- cgit v1.2.3-70-g09d2