1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

Provide basis for document lifecycle

This commit is contained in:
Harvey Kandola 2018-03-15 17:11:53 +00:00
parent d9a9a828ed
commit ba52dfa11d
20 changed files with 350 additions and 154 deletions

View file

@ -16,7 +16,7 @@ var Router = EmberRouter.extend({
location: config.locationType
});
export default Router.map(function() {
export default Router.map(function () {
this.route('folders', {
path: '/'
});
@ -30,7 +30,7 @@ export default Router.map(function() {
{
path: 's/:folder_id/:folder_slug'
},
function() {
function () {
this.route('category', {
path: 'category'
});
@ -42,7 +42,7 @@ export default Router.map(function() {
{
path: 's/:folder_id/:folder_slug/d/:document_id/:document_slug'
},
function() {
function () {
this.route('section', {
path: 'section/:page_id'
});
@ -57,7 +57,7 @@ export default Router.map(function() {
{
path: 'settings'
},
function() {
function () {
this.route('general', {
path: 'general'
});
@ -82,6 +82,9 @@ export default Router.map(function() {
this.route('audit', {
path: 'audit'
});
this.route('archive', {
path: 'archive'
});
}
);
@ -98,7 +101,7 @@ export default Router.map(function() {
{
path: 'auth'
},
function() {
function () {
this.route('sso', {
path: 'sso/:token'
});