improved route strategy (url path), headers menu are working
This commit is contained in:
+5
-3
@@ -22,14 +22,16 @@ var _dbs = require('./modules/dbs');
|
||||
var _Inline = require('./modules/inline');
|
||||
var _Tree = require('./modules/tree');
|
||||
|
||||
|
||||
function init(){
|
||||
_dbs.load(function(){
|
||||
console.log("Init _dbs.data", _dbs.data);
|
||||
console.log("Init _dbs.data_byid", _dbs.data_byid);
|
||||
console.log("Init _dbs.data_strct", _dbs.data_strct);
|
||||
m.route(document.body, "/inline", {
|
||||
"/inline": _Inline,
|
||||
"/tree": _Tree,
|
||||
m.route.prefix("");
|
||||
m.route(document.body, "/lat/inline", {
|
||||
"/:lang/inline": _Inline,
|
||||
"/:lang/tree": _Tree,
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user