This commit is contained in:
2025-07-21 21:43:15 +08:00
parent 95c12f0b82
commit e25f252bed
4 changed files with 20 additions and 217 deletions

View File

@@ -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')