Fix login, root route, hero redirect and game page API handling

This commit is contained in:
2026-10-21 13:46:13 +11:00
parent 1564615322
commit a616244d4e
4 changed files with 44 additions and 32 deletions
+3
View File
@@ -45,6 +45,9 @@ 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'));
// Auth routes (public)
app.post('/api/auth/register', registerLimiter, authRoutes.postRegister);
app.post('/api/auth/login', loginLimiter, authRoutes.postLogin);