Blame view
client/routes/routes-public.js
864 Bytes
3b214be5e
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
/* * Routes: Public * Routes that are visible to all (public) users. */ Router.route('signup', { path: '/signup', template: 'signup', onBeforeAction: function(){ Session.set('currentRoute', 'signup'); this.next(); } }); Router.route('login', { path: '/login', template: 'login', onBeforeAction: function(){ Session.set('currentRoute', 'login'); this.next(); } }); Router.route('recover-password', { path: '/recover-password', template: 'recoverPassword', onBeforeAction: function(){ Session.set('currentRoute', 'recover-password'); this.next(); } }); Router.route('reset-password', { path: '/reset-password/:token', template: 'resetPassword', onBeforeAction: function() { Session.set('currentRoute', 'reset-password'); Session.set('resetPasswordToken', this.params.token); this.next(); } }); |