feature(server) add controller.midle to express app

This commit is contained in:
coderaiser 2014-08-22 06:22:07 -04:00
parent bba629d19e
commit 08ce5dde50

View file

@ -120,6 +120,9 @@
function createServer(port, ip, protocol, ssl, callback) {
var server, app, respondApp,
config = main.config,
middle = controller.middle(DIR),
isMinify = function() {
var isMinify = main.config.minify;
@ -147,6 +150,7 @@
if (expressApp) {
app = expressApp;
app.use(middle);
} else {
funcs.push(controller.middle(DIR));