mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
by welefen
This commit is contained in:
parent
61ee780c0f
commit
ab768b359d
5
App/Conf/route.js
Normal file
5
App/Conf/route.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
'/w/i': {
|
||||
"get,post": ""
|
||||
}
|
||||
}
|
||||
17
lib/Lib/Behavior/CheckRouteBehavior.class.js
Normal file
17
lib/Lib/Behavior/CheckRouteBehavior.class.js
Normal 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;
|
||||
Loading…
x
Reference in New Issue
Block a user