From 01c31ec35be53231c7a3d3d4408265fba9e5c50b Mon Sep 17 00:00:00 2001 From: treamz Date: Sun, 22 Mar 2026 00:04:17 +0300 Subject: [PATCH] Fix: landing served at / instead of dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Renamed index.html → dashboard.html (express.static was serving index.html for /) - / now correctly shows landing page (no logout button, no dashboard header) - /dashboard shows dashboard.html (protected, requires auth) - Incognito users see only landing + login/register --- public/{index.html => dashboard.html} | 0 routes/pages.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename public/{index.html => dashboard.html} (100%) diff --git a/public/index.html b/public/dashboard.html similarity index 100% rename from public/index.html rename to public/dashboard.html diff --git a/routes/pages.js b/routes/pages.js index ee684bf..8ff8066 100644 --- a/routes/pages.js +++ b/routes/pages.js @@ -8,7 +8,7 @@ const pub = (...p) => path.join(__dirname, '..', 'public', ...p); router.get('/', (req, res) => res.sendFile(pub('landing.html'))); // Dashboard (protected — after auth) -router.get('/dashboard', (req, res) => res.sendFile(pub('index.html'))); +router.get('/dashboard', (req, res) => res.sendFile(pub('dashboard.html'))); router.get('/home', (req, res) => res.redirect('/dashboard')); // Tools