I intercept all traffic before passing it using:
app.all('*', function(req, res, next) {
... run before stuff, related to the next req.route.path
next();
});
and I want to run the code before calling the function next(). so that I know the correct code that I need to execute, I must determine what is the next route of the request route.
Debugging the current req object (inside of everything ('*', ..) gives no information about the following request.route.path
How can I get the following route.path method before calling it?
Your help will be appreciated. Thanks.
source
share