Created
January 28, 2014 13:50
-
-
Save kunal732/8668012 to your computer and use it in GitHub Desktop.
Adding Route to Meteor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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