mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-04-05 08:53:53 -04:00
Moved request logger to catch OIDC callback request for debugging
This commit is contained in:
16
server.js
16
server.js
@@ -75,6 +75,14 @@ app.get('/_health', (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* Request logger
|
||||
*/
|
||||
app.use((req, res, next) => {
|
||||
log.info(`[Web]: ${req.originalUrl}`);
|
||||
next();
|
||||
});
|
||||
|
||||
/**
|
||||
* Initialize OIDC
|
||||
*/
|
||||
@@ -97,14 +105,6 @@ app.use(cookieParser());
|
||||
*/
|
||||
app.use(flashMessage);
|
||||
|
||||
/**
|
||||
* Request logger
|
||||
*/
|
||||
app.use((req, res, next) => {
|
||||
log.info(`[Web]: ${req.originalUrl}`);
|
||||
next();
|
||||
});
|
||||
|
||||
/**
|
||||
* Serve static public dir
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user