Blame view
both/routes/public.js
1.07 KB
334a76815
|
1 |
let publicRoutes = FlowRouter.group({ |
77001041a
|
2 3 4 5 6 7 8 |
triggersEnter: [ () => { if ( Meteor.userId() ) { FlowRouter.go( 'index' ); Session.set( 'currentRoute', 'index' ); } }] }); |
334a76815
|
9 |
publicRoutes.route( '/signup', { |
77001041a
|
10 11 12 13 14 15 16 17 |
name: 'signup', triggersEnter: [ () => { Session.set( 'currentRoute', 'signup' ); }], action() { BlazeLayout.render( 'default', { yield: 'signup' } ); } }); |
334a76815
|
18 |
publicRoutes.route( '/login', { |
77001041a
|
19 20 21 22 23 24 25 26 |
name: 'login', triggersEnter: [ () => { Session.set( 'currentRoute', 'login' ); }], action() { BlazeLayout.render( 'default', { yield: 'login' } ); } }); |
334a76815
|
27 |
publicRoutes.route( '/recover-password', { |
77001041a
|
28 29 30 31 32 33 34 35 |
name: 'recover-password', triggersEnter: [ () => { Session.set( 'currentRoute', 'recover-password' ); }], action() { BlazeLayout.render( 'default', { yield: 'recoverPassword' } ); } }); |
334a76815
|
36 |
publicRoutes.route( '/reset-password/:token', { |
77001041a
|
37 38 39 40 41 42 43 44 |
name: 'reset-password', triggersEnter: [ () => { Session.set( 'currentRoute', 'reset-password' ); }], action() { BlazeLayout.render( 'default', { yield: 'resetPassword' } ); } }); |