mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
logging improvements, logging "/" now
This commit is contained in:
parent
373cb4db71
commit
23fcb48fcd
3 changed files with 6 additions and 3 deletions
|
@ -58,7 +58,8 @@ function GetApp(): ModuleType {
|
|||
})
|
||||
)
|
||||
app.use((req: Request, res, next) => {
|
||||
if (req.url.includes('.html')) {
|
||||
const url = req.url.split('?')[0]
|
||||
if (url.includes('.html') || url === '/') {
|
||||
logger.LogReq(req)
|
||||
}
|
||||
next()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue