Skip to content

Instantly share code, notes, and snippets.

@Trindaz
Created April 21, 2014 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Trindaz/11139409 to your computer and use it in GitHub Desktop.
Save Trindaz/11139409 to your computer and use it in GitHub Desktop.
client/helpers/router.js from Discover Meteor
Meteor.Router.add({
'/': 'postsList',
'/posts/:_id': {
to: 'postPage',
and: function(id) {
Session.set('currentPostId', id);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment