Sun Jan 07 2024 13:41:20 GMT+0000 (Coordinated Universal Time)
Saved by @Hritujeet
const myLogger = function (req, res, next) { console.log('LOGGED') next() } app.use(myLogger) // or for other route files -> router.use(myLogger);
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments