2022-08-15 18:07:39 -05:00
|
|
|
FlowRouter.route('/dashboard', {
|
2022-08-04 19:50:18 -05:00
|
|
|
name: 'home',
|
|
|
|
|
action() {
|
2022-08-15 18:07:39 -05:00
|
|
|
BlazeLayout.render('MainLayout', { main: "dashboard" });
|
2022-08-04 19:50:18 -05:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2022-08-15 18:07:39 -05:00
|
|
|
FlowRouter.route('/', {
|
|
|
|
|
name: 'homeNoRoute',
|
2022-08-04 19:50:18 -05:00
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: "dashboard" });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2022-08-15 18:07:39 -05:00
|
|
|
FlowRouter.route('/', {
|
|
|
|
|
name: 'homeNotLoggedIn',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { notLoggedIn: "login" });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2022-08-05 16:55:56 -05:00
|
|
|
FlowRouter.route('/login', {
|
|
|
|
|
name: 'login',
|
2022-08-04 19:50:18 -05:00
|
|
|
action() {
|
2022-08-05 16:55:56 -05:00
|
|
|
BlazeLayout.render('MainLayout', { notLoggedIn: "login" });
|
2022-08-04 19:50:18 -05:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2022-08-05 16:55:56 -05:00
|
|
|
FlowRouter.route('/reg', {
|
|
|
|
|
name: 'reg',
|
2022-08-04 19:50:18 -05:00
|
|
|
action() {
|
2022-08-05 16:55:56 -05:00
|
|
|
BlazeLayout.render('MainLayout', { notLoggedIn: "reg" });
|
2022-08-04 19:50:18 -05:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2022-08-05 16:55:56 -05:00
|
|
|
FlowRouter.route('/userMgmt', {
|
|
|
|
|
name: 'userMgmt',
|
2022-08-04 19:50:18 -05:00
|
|
|
action() {
|
2022-08-05 16:55:56 -05:00
|
|
|
BlazeLayout.render('MainLayout', { main: 'userMgmt' });
|
2022-08-04 19:50:18 -05:00
|
|
|
}
|
2022-08-15 18:07:39 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/manageStore', {
|
|
|
|
|
name: 'storeMgmt',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'storeMgmt' });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/manage', {
|
|
|
|
|
name: 'mgmtPage',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'mgmtPage' });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/manageProduct', {
|
|
|
|
|
name: 'manageProduct',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'prodMgmt' });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/manageCategory', {
|
|
|
|
|
name: 'manageCategory',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'catMgmt' });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/manageLocation', {
|
|
|
|
|
name: 'manageLocation',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'locMgmt' });
|
|
|
|
|
}
|
2022-08-16 16:46:14 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/manageLists', {
|
|
|
|
|
name: 'manageLists',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'listMgmt' });
|
|
|
|
|
}
|
2022-08-23 13:41:21 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/mylists', {
|
|
|
|
|
name: 'mylists',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'listsMain' });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/listItems', {
|
|
|
|
|
name: 'listItems',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'listItemsMain' });
|
|
|
|
|
}
|
2022-08-26 17:10:05 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/mymenus', {
|
|
|
|
|
name: 'mymenus',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'mainMenu' });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/menuItems', {
|
|
|
|
|
name: 'menuItems',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'menuItems' });
|
|
|
|
|
}
|
2022-09-05 09:39:54 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/taskHome', {
|
|
|
|
|
name: 'taskHome',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'taskHome' });
|
|
|
|
|
}
|
2022-09-05 15:30:20 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
FlowRouter.route('/myTasks', {
|
|
|
|
|
name: 'myTasks',
|
|
|
|
|
action() {
|
|
|
|
|
BlazeLayout.render('MainLayout', { main: 'myTasks' });
|
|
|
|
|
}
|
2022-08-04 19:50:18 -05:00
|
|
|
});
|