get_my/lib/routes.js
Brian McGonagill 750811a81f initial commit
2022-08-04 19:50:18 -05:00

73 lines
No EOL
1.6 KiB
JavaScript

FlowRouter.route('/', {
name: 'home',
action() {
BlazeLayout.render('MainLayout', { notLoggedIn: "home" });
}
});
// ------- System Admin flows -----------
FlowRouter.route('/systemAdminReg', {
name: 'sysAdminReg',
action() {
BlazeLayout.render('MainLayout', { notLoggedIn: "systemAdminReg" });
}
});
FlowRouter.route('/sysAdminLogin', {
name: 'sysAdminLogin',
action() {
BlazeLayout.render('MainLayout', { notLoggedIn: "systemAdminLogin" });
}
});
FlowRouter.route('/adminMainLogin', {
name: 'sysAdminLogin',
action() {
BlazeLayout.render('MainLayout', { notLoggedIn: "systemAdminLogin" });
}
});
FlowRouter.route('/createServiceEntity', {
name: 'createServiceEntity',
action() {
BlazeLayout.render('MainLayout', { main: "createServiceEntity" });
}
});
// ------- General User Flows --------
FlowRouter.route('/dashboard', {
name: 'home',
action() {
BlazeLayout.render('MainLayout', { main: "dashboard" });
}
});
FlowRouter.route('/parguarlogin', {
name: 'parentLogin',
action() {
BlazeLayout.render('MainLayout', { notLoggedIn: "parentLogin" });
}
});
FlowRouter.route('/parentReg', {
name: 'parentReg',
action() {
BlazeLayout.render('MainLayout', { notLoggedIn: "parentsRegistration" });
}
});
FlowRouter.route('/teachlogin', {
name: 'teachLogin',
action() {
BlazeLayout.render('MainLayout', { notLoggedIn: "teacherLogin" });
}
});
FlowRouter.route('/teachReg', {
name: 'teachReg',
action() {
BlazeLayout.render('MainLayout', { notLoggedIn: "teacherRegistration" });
}
});