mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-04-05 08:54:17 -04:00
Moved static routes before OIDC to prevent errors due to silent login
This commit is contained in:
10
server.js
10
server.js
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user