Fix: landing served at / instead of dashboard

- 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
This commit is contained in:
treamz 2026-03-22 00:04:17 +03:00
parent 0664c018c6
commit 01c31ec35b
2 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ const pub = (...p) => path.join(__dirname, '..', 'public', ...p);
router.get('/', (req, res) => res.sendFile(pub('landing.html'))); router.get('/', (req, res) => res.sendFile(pub('landing.html')));
// Dashboard (protected — after auth) // 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')); router.get('/home', (req, res) => res.redirect('/dashboard'));
// Tools // Tools