mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
feat: add GET /health endpoint
This commit is contained in:
@@ -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"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user