[object Object]

← back to Saloonwallpaper

wire api-vendor-redact middleware as first app.use (strips vendor + vendors facet from /api/* JSON)

76cd4918daf25c4094d1475a22f5c4a4f99eecd2 · 2026-05-25 21:29:31 -0700 · Steve

Files touched

Diff

commit 76cd4918daf25c4094d1475a22f5c4a4f99eecd2
Author: Steve <steve@designerwallcoverings.com>
Date:   Mon May 25 21:29:31 2026 -0700

    wire api-vendor-redact middleware as first app.use (strips vendor + vendors facet from /api/* JSON)
---
 server.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server.js b/server.js
index 9ae426b..0c46d93 100644
--- a/server.js
+++ b/server.js
@@ -124,6 +124,8 @@ function sortProducts(list, mode) {
 }
 
 
+// Strip vendor names from any /api/* JSON response (Steve's standing brand rule)
+app.use(require('../_shared/api-vendor-redact'));
 app.use(express.json({ limit: "256kb" }));
 // Site config — prefer _shared/site-config (canonical) but fall back to an
 // inline minimal loader so this server.js is self-contained on Kamatera.

← 21b04c1 retag aesthetic from PG: 595 rows updated  ·  back to Saloonwallpaper  ·  fix: /api/facets total + counts now reflect filtered list (q 05f7a57 →