Add the profile app in template.js

This commit is contained in:
yflory 2017-06-27 14:27:54 +02:00
parent 8f2db44793
commit 40f4fc2682
2 changed files with 6 additions and 0 deletions

View File

@ -284,6 +284,10 @@ define([
return h('div#container');
};
Pages['/profile/'] = Pages['/profile/index.html'] = function () {
return h('div#container');
};
Pages['/register/'] = Pages['/register/index.html'] = function () {
return [h('div#main', [
h('div.mainOverlay'),

View File

@ -139,6 +139,8 @@ $(function () {
require([ '/settings/main.js', ], function () {});
} else if (/^\/user\//.test(pathname)) {
require([ '/user/main.js'], function () {});
} else if (/^\/profile\//.test(pathname)) {
require([ '/profile/main.js'], function () {});
} else if (/^\/register\//.test(pathname)) {
require([ '/register/main.js' ], function () {});
} else if (/^\/login\//.test(pathname)) {