fix: add /health endpoint for k8s probes
Some checks failed
Build & Release / build (push) Failing after 6s
Some checks failed
Build & Release / build (push) Failing after 6s
This commit is contained in:
@@ -10,6 +10,8 @@ app.register(staticFiles, {
|
||||
prefix: "/",
|
||||
});
|
||||
|
||||
app.get("/health", async () => ({ status: "ok" }));
|
||||
|
||||
app.register(customerRoutes, { prefix: "/api" });
|
||||
|
||||
app.listen({ port: Number(process.env.PORT ?? 3000), host: "0.0.0.0" }, (err) => {
|
||||
|
||||
Reference in New Issue
Block a user