← back to AsSeenInMovies
asim-healthz
4de56c1b36848bce91c19bfbef5706954b1c2cc4 · 2026-05-13 01:31:39 -0700 · SteveStudio2
Files touched
Diff
commit 4de56c1b36848bce91c19bfbef5706954b1c2cc4
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Wed May 13 01:31:39 2026 -0700
asim-healthz
---
server.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/server.js b/server.js
index 04a4f02..503a9a2 100644
--- a/server.js
+++ b/server.js
@@ -87,6 +87,9 @@ app.get('/api', (_req, res) => {
});
});
+// k8s-style alias — many infra tools probe /healthz by convention.
+app.get('/healthz', (_req, res) => res.json({ ok: true, ts: Date.now() }));
+
app.get('/api/health', async (_req, res) => {
try {
// Cheap liveness: SELECT 1 only. The count(*) counts come from the
← 7197fa3 asseeninmovies: /api/{movie,person,search,spotted} Cache-Con
·
back to AsSeenInMovies
·
asseeninmovies: home cache background refresh every 45s (unr 0878efc →