step 10.5: wip (not ticked)

This commit is contained in:
bepis
2026-10-22 23:10:45 +11:00
parent 81ad47c138
commit 311f64143d
7 changed files with 454 additions and 44 deletions
+4 -2
View File
@@ -45,8 +45,10 @@ function createApp() {
res.json({ ok: true });
});
// Root: send visitors to the login page (there is no index.html)
app.get('/', (_req, res) => res.redirect('/login.html'));
// Root: serve the landing page
app.get('/', (_req, res) => {
res.sendFile(path.join(PUBLIC_DIR, 'index.html'));
});
// Auth routes (public)
app.post('/api/auth/register', registerLimiter, authRoutes.postRegister);