[object Object]

← back to Labj Cre Banks

labj-viewer: add /healthz route for fleet-consistent monitoring (yoloforever cycle 1)

d868fb3a0623c6860ce5849ad006d7dae8322dc5 · 2026-08-11 08:52:59 -0700 · steve

Files touched

Diff

commit d868fb3a0623c6860ce5849ad006d7dae8322dc5
Author: steve <steve@designerwallcoverings.com>
Date:   Tue Aug 11 08:52:59 2026 -0700

    labj-viewer: add /healthz route for fleet-consistent monitoring (yoloforever cycle 1)
---
 server.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server.js b/server.js
index 91c74a9..e0f84a9 100644
--- a/server.js
+++ b/server.js
@@ -47,6 +47,7 @@ const server = http.createServer((req, res) => {
     return res.end('Bad request');
   }
   if (rel === '/' || rel === '') rel = '/index.html';
+  if (rel === '/healthz') { res.writeHead(200, { 'Content-Type': 'application/json' }); return res.end('{"ok":true}'); }
   const full = path.normalize(path.join(ROOT, rel));
   if (!full.startsWith(ROOT + path.sep) && full !== ROOT) { res.writeHead(403); return res.end('Forbidden'); }
   fs.readFile(full, (err, buf) => {

← a08c195 Socrata README: APN->owner verified DEAD END for free (no LA  ·  back to Labj Cre Banks  ·  LABJ enrich (yoloforever cycle 2): +7 verified public contac 8416ddc →