【发布时间】:2014-06-22 04:18:34
【问题描述】:
当我在做嵌套快速应用程序时,嵌套应用程序use 不起作用
var app = express();
var localApp = express();
app.use('/pdf-exporter', PDFExporterModule());
function PDFExporterModule(app) {
localApp.use(function(req, res, next) {
//this code never execute !!!!!!
next();
});
localApp.get('/subpath/:userId', function() {...});
return localApp;
}
【问题讨论】: