Created
March 15, 2017 19:03
-
-
Save geetotes/75ab70338d340eeb7c664402fa9a46ed to your computer and use it in GitHub Desktop.
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
class Endpoints { | |
static login(auth_params) { | |
return { | |
method: 'POST', | |
endpoint: 'users/login', | |
loading_message: 'Loggin You In', | |
body: JSON.stringify(auth_params) | |
} | |
} | |
// More static methods that just return an object | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment