Created
January 5, 2016 14:05
-
-
Save hpaul/953b57378bda8df98f2f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @withAuthorization | |
| class Users extends Endpoint { | |
| static url = '/users'; | |
| static create(data, success, error) { | |
| return this.post(data).then( | |
| success, error | |
| ); | |
| } | |
| } | |
| onCreate() { | |
| dispatch( Users.create(data, Users.onCreated, someError) ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment