Hi,
In this piece of code it works well for me ...
app.get('/user/:id', function(req,res,next){
console.log(req.route.path); // It works well
});
But I would like obtain route path in this way
app.use(function(req, res, next){
console.log(req.route.path); // It doesn't work!!
});
In order to get swagger documentation node by key "/user/:id" for all my routes.
It would be extremely useful if I could intercept that path not only inside
app.METHOD()
but in general for all requests
How can I do that in this way???
Thank you for your support folks!