Created
December 24, 2016 17:15
-
-
Save bleonard/8594c5c405ddeaba7d6cf66ffea53431 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
Model.prototype.getApiHost = function() { | |
switch(this.data.name) { | |
case 'test': | |
return 'http://localhost:3001'; | |
case 'debug': | |
return 'http://localhost:3000'; | |
case 'staging': | |
return 'https://someday.herokuapp.com'; | |
default: | |
throw("Unknown Environment.getApiHost: " + this.data.name); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment