diff --git a/App/Conf/route.js b/App/Conf/route.js new file mode 100644 index 00000000..bbe0d806 --- /dev/null +++ b/App/Conf/route.js @@ -0,0 +1,5 @@ +module.exports = { + '/w/i': { + "get,post": "" + } +} \ No newline at end of file diff --git a/lib/Lib/Behavior/CheckRouteBehavior.class.js b/lib/Lib/Behavior/CheckRouteBehavior.class.js new file mode 100644 index 00000000..fde1e65c --- /dev/null +++ b/lib/Lib/Behavior/CheckRouteBehavior.class.js @@ -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; \ No newline at end of file