I am working on this challenge. I passed it already, however I can’t get the console log to actually show the routing. This is the current state of the code. I think it has something to do with way I closed it.
This is the current state of the code.
app.use(function middleware(req, res, next) {
console.log(req.method + " " + req.path + " - " + req.ip)
next();
})