[object Object]

← back to Customdigitalmurals

fix: add /api/health alias so fleet-standard health probe returns 200

e7dffedc83e765648a847b4cb86abd2842854e23 · 2026-05-30 21:20:59 -0700 · Steve Abrams

The route was registered as /health only; /api/health returned 404.
Added /api/health as a second handler pointing at the same response
to align with the DW fleet convention used by all sister sites.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files touched

Diff

commit e7dffedc83e765648a847b4cb86abd2842854e23
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Sat May 30 21:20:59 2026 -0700

    fix: add /api/health alias so fleet-standard health probe returns 200
    
    The route was registered as /health only; /api/health returned 404.
    Added /api/health as a second handler pointing at the same response
    to align with the DW fleet convention used by all sister sites.
    
    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---
 server.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server.js b/server.js
index ab293c0..3196c49 100644
--- a/server.js
+++ b/server.js
@@ -98,8 +98,9 @@ app.use(require('../_shared/api-vendor-redact'));
 
 app.use(express.static(path.join(__dirname, 'public'), { maxAge: '1d' }));
 
-// Health check
+// Health check (both paths — /health for direct probe, /api/health for fleet standard)
 app.get('/health', (_req, res) => res.json({ ok: true, count: ALL.length }));
+app.get('/api/health', (_req, res) => res.json({ ok: true, count: ALL.length }));
 
 // ── DW STANDARD sort helpers ─────────────────────────────────────────────
 // color bucket — group similar hues from the title + tags + aesthetic

← 2047dc2 fix: strip bare '-arte' (Arte International abbrev) from pro  ·  back to Customdigitalmurals  ·  scrub residual 3rd-party vendor names from products.json sou 4b85472 →