我可以通过Express中的下一个function传递数据吗?

在使用Express ,我有一个像这样的路线:

 app.get('*', function (req, res, next) { // no route is matched // so call next() to pass to the static middleware next(); }); 

还有另外一个类似app.get('/myroute', function(req, res, next)...的路线app.get('/myroute', function(req, res, next)...

我可以通过从第一个通过next一个路线的信息?

谢谢@amakhrov。 我可以使用res.locals和存储信息。