aboutsummaryrefslogtreecommitdiffstats
path: root/packages/api/routes
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-07-02 00:13:33 +0000
committerMohamed Bassem <me@mbassem.com>2025-07-04 16:27:29 +0000
commitf144f1bcc21e20f29381aa5d69ed3f822dbaec9a (patch)
tree60e82a5b2164821f719b64e89b21f913ed55a93e /packages/api/routes
parentf5e737bf9645271f8525070f9ba6de1f476fafd9 (diff)
downloadkarakeep-f144f1bcc21e20f29381aa5d69ed3f822dbaec9a.tar.zst
refactor: Move the health endpoint to hono as well
Diffstat (limited to 'packages/api/routes')
-rw-r--r--packages/api/routes/health.ts16
1 files changed, 16 insertions, 0 deletions
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;