From e969e55e2d1c4dc69f447ca92a38b4cb7ecad65c Mon Sep 17 00:00:00 2001 From: nev-offload Date: Tue, 3 Feb 2026 16:38:10 +0200 Subject: [PATCH] Add request logging middleware --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index 399dc88..4381b5b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -29,3 +29,9 @@ app.get('/', (req, res) => { app.listen(PORT, () => { console.log(`Server running on port ${PORT}`); }); + +// Simple request logging middleware +const requestLogger = (req: any, res: any, next: any) => { + console.log(`[${new Date().toISOString()}] ${req.method} ${req.path}`); + next(); +};