feat: root (/) verwijst nu naar de nieuwe SPA op /app
This commit is contained in:
@@ -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) => {
|
app.use((req, res, next) => {
|
||||||
const publicPaths = ['/login', '/auth/login', '/css/dynamic.css', '/js/theme.js', '/health', '/api/spa/auth/login'];
|
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'];
|
const publicPrefixes = ['/wachtwoord-vergeten', '/wachtwoord-reset/', '/css/', '/js/', '/health', '/app'];
|
||||||
|
|||||||
Reference in New Issue
Block a user