优化
This commit is contained in:
@@ -47,6 +47,9 @@ app.use(express.urlencoded({ extended: true }));
|
||||
|
||||
// Request logging
|
||||
app.use((req, res, next) => {
|
||||
if (req.path === '/health') {
|
||||
return next();
|
||||
}
|
||||
logger.info(`${req.method} ${req.path}`, {
|
||||
ip: req.ip,
|
||||
userAgent: req.get('User-Agent')
|
||||
|
||||
Reference in New Issue
Block a user