Created
February 14, 2016 20:48
-
-
Save spencercarli/39e75acaf9bbb7b4e174 to your computer and use it in GitHub Desktop.
Meteor Authentication from React Native - posts.js
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-app/both/posts.js | |
'addPost': function() { | |
Posts.insert({ | |
title: 'Post ' + Random.id(), | |
userId: this.userId | |
}); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment