mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-26 15:58:50 +00:00
134 lines
No EOL
2.6 KiB
JavaScript
134 lines
No EOL
2.6 KiB
JavaScript
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
|
|
|
|
FlowRouter.route('/dashboard', {
|
|
name: 'home',
|
|
action() {
|
|
this.render('MainLayout', { main: "dashboard" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/', {
|
|
name: 'homeNoRoute',
|
|
action() {
|
|
this.render('MainLayout', { main: "dashboard" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/', {
|
|
name: 'homeNotLoggedIn',
|
|
action() {
|
|
this.render('MainLayout', { notLoggedIn: "login" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/login', {
|
|
name: 'login',
|
|
action() {
|
|
this.render('MainLayout', { notLoggedIn: "login" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/reg', {
|
|
name: 'reg',
|
|
action() {
|
|
this.render('MainLayout', { notLoggedIn: "reg" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/userMgmt', {
|
|
name: 'userMgmt',
|
|
action() {
|
|
this.render('MainLayout', { main: 'userMgmt' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/manageStore', {
|
|
name: 'storeMgmt',
|
|
action() {
|
|
this.render('MainLayout', { main: 'storeMgmt' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/manage', {
|
|
name: 'mgmtPage',
|
|
action() {
|
|
this.render('MainLayout', { main: 'mgmtPage' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/manageProduct', {
|
|
name: 'manageProduct',
|
|
action() {
|
|
this.render('MainLayout', { main: 'prodMgmt' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/manageLists', {
|
|
name: 'manageLists',
|
|
action() {
|
|
this.render('MainLayout', { main: 'listMgmt' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/mylists', {
|
|
name: 'mylists',
|
|
action() {
|
|
this.render('MainLayout', { main: 'listsMain' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/listItems', {
|
|
name: 'listItems',
|
|
action() {
|
|
this.render('MainLayout', { main: 'listItemsMain' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/mymenus', {
|
|
name: 'mymenus',
|
|
action() {
|
|
this.render('MainLayout', { main: 'mainMenu' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/menuItems', {
|
|
name: 'menuItems',
|
|
action() {
|
|
this.render('MainLayout', { main: 'menuItems' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/taskHome', {
|
|
name: 'taskHome',
|
|
action() {
|
|
this.render('MainLayout', { main: 'taskHome' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/myTasks', {
|
|
name: 'myTasks',
|
|
action() {
|
|
this.render('MainLayout', { main: 'myTasks' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/systemAdmin', {
|
|
name: 'systemAdmin',
|
|
action() {
|
|
this.render('MainLayout', { main: 'systemAdmin' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/cleanUp', {
|
|
name: 'cleanUp',
|
|
action() {
|
|
this.render('MainLayout', { main: 'cleanUp'});
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/mySettings', {
|
|
name: 'mySettings',
|
|
action() {
|
|
this.render('MainLayout', { main: 'userConfig'});
|
|
}
|
|
}); |