Initial commit
This commit is contained in:
commit
35745a89ec
44 changed files with 3342 additions and 0 deletions
50
lib/route.js
Normal file
50
lib/route.js
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
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" });
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue