yog2-kernel
Advanced tools
Comparing version 0.0.11 to 0.0.12
{ | ||
"name": "yog2-kernel", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,5 +10,5 @@ 'use strict'; | ||
//用户自定义rootRouter | ||
var router = new express.Router(); | ||
var rootRouter = new express.Router(); | ||
yog.dispatcher = dispatcherIns; | ||
var rootRouter = conf.rootRouter(router); | ||
conf.rootRouter(rootRouter); | ||
//自动路由 | ||
@@ -23,5 +23,5 @@ var autoRouter = dispatcherIns.middleware; | ||
module.exports.dispatcher.defaultConf = { | ||
rootRouter: function(router, dispatcher){ | ||
return router; | ||
rootRouter: function(router){ | ||
} | ||
}; |
28074
726