by welefen

This commit is contained in:
welefen 2013-10-11 23:05:12 +08:00
parent 61ee780c0f
commit ab768b359d
2 changed files with 22 additions and 0 deletions

5
App/Conf/route.js Normal file
View File

@ -0,0 +1,5 @@
module.exports = {
'/w/i': {
"get,post": ""
}
}

View File

@ -0,0 +1,17 @@
/**
* 检测路由行为
* 通过自定义路由识别到对应的URL上
* @return {[type]} [description]
*/
var behavior = Behavior(function(){
return {
options: {
'url_route_on': false, //是否开启自定义URL路由
'url_route_rules': [] //自定义URL路由规则
},
run: function(){
console.log(this.options);
}
}
});
module.exports = behavior;