← back to Interiordesignershowroom
lib/nav.js
21 lines
// Canonical list of browsable room categories — the ONE source of truth shared by
// server.js (the /rooms/:room route whitelist, ROOM_SLUGS, and sitemap) and
// render.js (the header hamburger). Keeping it here means the nav menu, the routes
// that 200 vs 404, and the sitemap can never drift out of sync.
//
// [slug, Label]. A slug earns a spot here only if it's a real category with its own
// nav page; DB-artifact room values (e.g. "paint") are deliberately excluded.
const ROOMS = [
['living-room', 'Living Room'],
['bedroom', 'Bedroom'],
['dining', 'Dining'],
['kitchen', 'Kitchen'],
['bathroom', 'Bathroom'],
['office', 'Office'],
['lighting', 'Lighting'],
['decor', 'Decor'],
['outdoor', 'Outdoor'],
];
module.exports = { ROOMS };