在使用中Express,我有一条路线,如:
app.get('*', function (req, res, next) {
// no route is matched
// so call next() to pass to the static middleware
next();
});
Run Code Online (Sandbox Code Playgroud)
还有一条类似的路线 app.get('/myroute', function(req, res, next)...
我可以将信息从第一个 via 传递到该路由next吗?
| 归档时间: |
|
| 查看次数: |
1247 次 |
| 最近记录: |