From 3c49df64ae6e8ba6d469f47f46f4b8c8ad586cf1 Mon Sep 17 00:00:00 2001 From: mo Date: Tue, 21 Jul 2026 21:50:51 +0200 Subject: [PATCH] feat: root (/) verwijst nu naar de nieuwe SPA op /app --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index 62cf8ba..fe729fa 100644 --- a/server.js +++ b/server.js @@ -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'];