Skip to content

Instantly share code, notes, and snippets.

@dyaa
Forked from kunal732/addroute
Created September 22, 2015 15:18
Show Gist options
  • Save dyaa/e6dab7d78852ebc0bd0f to your computer and use it in GitHub Desktop.
Save dyaa/e6dab7d78852ebc0bd0f 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