Skip to content

Instantly share code, notes, and snippets.

@kunal732
Created January 28, 2014 13:50
Show Gist options
  • Save kunal732/8668012 to your computer and use it in GitHub Desktop.
Save kunal732/8668012 to your computer and use it in GitHub Desktop.
Adding Route to Meteor
Meteor.Router.add({
'/inbound': function() {
post = this.request.body;
color = post.subject;
Colors.update({pos: 1},{ $set: { "name": color } } );
return [200, "Success"]
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment