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-04 19:50:18 -05:00
|
|
|
});
|