Moved static routes before OIDC to prevent errors due to silent login

This commit is contained in:
Glenn de Haan
2024-10-07 15:51:23 +02:00
parent a4a11ea59c
commit a0b8520a6f

View File

@@ -84,6 +84,11 @@ app.use((req, res, next) => {
next();
});
/**
* Serve static public dir
*/
app.use(express.static(`${__dirname}/public`));
/**
* Initialize OIDC
*/
@@ -106,11 +111,6 @@ app.use(cookieParser());
*/
app.use(flashMessage);
/**
* Serve static public dir
*/
app.use(express.static(`${__dirname}/public`));
/**
* Configure routers
*/