← back to Silkwallpaper
add clean-URL routes for history/vocabulary/sourcing/care/trade nav
3bb8b98d8b99489eba6d77280ce7f57a0b9c87a8 · 2026-05-25 21:35:40 -0700 · Steve Abrams
Files touched
Diff
commit 3bb8b98d8b99489eba6d77280ce7f57a0b9c87a8
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon May 25 21:35:40 2026 -0700
add clean-URL routes for history/vocabulary/sourcing/care/trade nav
---
server.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/server.js b/server.js
index d89ff4d..72fb683 100644
--- a/server.js
+++ b/server.js
@@ -202,6 +202,11 @@ app.get('/sample/:handle', (req, res) => {
// /about → served by the "short history" page (no dedicated about.html exists)
app.get('/about', (req, res) => res.sendFile(path.join(__dirname, 'public', 'history.html')));
+// Clean-URL routes for extension-less nav links (history/vocabulary/sourcing/care/trade)
+for (const slug of ['history', 'vocabulary', 'sourcing', 'care', 'trade']) {
+ app.get('/' + slug, (req, res) => res.sendFile(path.join(__dirname, 'public', slug + '.html')));
+}
+
// sitemap.xml + robots.txt for SEO
app.get('/robots.txt', (req, res) => {
res.type('text/plain').send(`User-agent: *
← b9f92f0 wire api-vendor-redact middleware + 404-guard for .bak/.pre-
·
back to Silkwallpaper
·
/api/facets total + counts respect q/aesthetic filters e11ce0d →