feat: root (/) verwijst nu naar de nieuwe SPA op /app

This commit is contained in:
mo
2026-07-21 21:50:51 +02:00
parent 0159ba1464
commit 3c49df64ae
+3
View File
@@ -46,6 +46,9 @@ app.use((req, res, next) => {
});
});
// De nieuwe React SPA is de primaire UI: / verwijst door naar /app
app.get('/', (req, res) => res.redirect('/app'));
app.use((req, res, next) => {
const publicPaths = ['/login', '/auth/login', '/css/dynamic.css', '/js/theme.js', '/health', '/api/spa/auth/login'];
const publicPrefixes = ['/wachtwoord-vergeten', '/wachtwoord-reset/', '/css/', '/js/', '/health', '/app'];