yog2-kernel
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -30,2 +30,3 @@ var express = require('express'); | ||
if (router === null){ | ||
debuglog('router [%s] is missed, continue', routerName); | ||
next(); | ||
@@ -57,2 +58,3 @@ return; | ||
if (action === null){ | ||
debuglog('action [%s/%s] is missed, continue', routerName, actionName); | ||
req.__auto_router_failed__ = true; | ||
@@ -59,0 +61,0 @@ next(); |
@@ -5,2 +5,3 @@ var dispatcher = require('./dispatcher.js'); | ||
module.exports.dispatcher = function(app, conf){ | ||
conf.appPath = conf.appPath || yog.ROOT_PATH + '/app'; | ||
var dispatcherIns = new dispatcher(conf); | ||
@@ -7,0 +8,0 @@ //用户自定义rootRouter |
{ | ||
"name": "yog2-kernel", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
26297
671