Skip to content

Commit aa5c1e8

Browse files
committed
feat: add / and /health routes for FastCron health check
1 parent fd6bad7 commit aa5c1e8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

backend/src/app.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,17 @@ app.get("/api/health", (_req, res) => {
106106
});
107107
});
108108

109+
app.get("/", (_req, res) => {
110+
res.status(200).send("OK");
111+
});
112+
113+
app.get("/health", (_req, res) => {
114+
res.status(200).json({
115+
status: "ok",
116+
uptime: process.uptime(),
117+
});
118+
});
119+
109120
app.use("/api/auth/login", authRateLimiter);
110121
app.use("/api/auth/register", authRateLimiter);
111122
app.use("/api/auth", authRoutes);

0 commit comments

Comments
 (0)