feat: add GET /health endpoint

This commit is contained in:
Julien Herr
2026-05-22 07:39:24 +02:00
parent bde06dd3e4
commit dae5db2524
+3
View File
@@ -151,6 +151,9 @@ app.route("/files", files);
app.route("/admin", admin); app.route("/admin", admin);
app.route("/hub", hubRouter); app.route("/hub", hubRouter);
// Health check endpoint for monitoring
app.get("/health", (c) => c.json({ status: "ok", timestamp: Date.now() }));
// Root path redirects to admin dashboard // Root path redirects to admin dashboard
app.get("/", (c) => c.redirect("/admin")); app.get("/", (c) => c.redirect("/admin"));