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'];