106 lines
No EOL
2.1 KiB
JavaScript
106 lines
No EOL
2.1 KiB
JavaScript
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
|
|
|
|
FlowRouter.route('/', {
|
|
name: 'home',
|
|
action() {
|
|
this.render('MainLayout', { main: "home" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/home', {
|
|
name: 'home',
|
|
action() {
|
|
this.render('MainLayout', { main: "home" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/', {
|
|
name: 'login',
|
|
action() {
|
|
this.render('MainLayout', { notLoggedIn: "login" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/login', {
|
|
name: 'login',
|
|
action() {
|
|
this.render('MainLayout', { notLoggedIn: "login" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/reg', {
|
|
name: 'registration',
|
|
action() {
|
|
this.render('MainLayout', { notLoggedIn: 'reg' });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/systemAdmin', {
|
|
name: 'systemAdmin',
|
|
action() {
|
|
this.render('MainLayout', { main: "systemAdmin" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/userMgmt', {
|
|
name: 'userManagement',
|
|
action() {
|
|
this.render('MainLayout', { main: "userMgmt" });
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/workouts', {
|
|
name: 'workouts',
|
|
action() {
|
|
this.render('MainLayout', { main: "workouts"});
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/meals', {
|
|
name: 'meals',
|
|
action() {
|
|
this.render('MainLayout', { main: "meals"});
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/measurements', {
|
|
name: 'measurements',
|
|
action() {
|
|
this.render('MainLayout', { main: "measurements"});
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/workoutLog', {
|
|
name: 'workoutLog',
|
|
action() {
|
|
this.render('MainLayout', { main: "workoutLog"});
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/logbook', {
|
|
name: 'logbook',
|
|
action() {
|
|
this.render('MainLayout', { main: "logbook"});
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/logEntry', {
|
|
name: 'logEntry',
|
|
action() {
|
|
this.render('MainLayout', { main: 'logEntry'});
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/measurements', {
|
|
name: 'measurements',
|
|
action() {
|
|
this.render('MainLayout', { main: 'measurements'});
|
|
}
|
|
});
|
|
|
|
FlowRouter.route('/measLogEntry', {
|
|
name: 'measLogEntry',
|
|
action() {
|
|
this.render('MainLayout', { main: 'measLogEntry'});
|
|
}
|
|
}); |