Skip to content

Commit

Permalink
Merge pull request #117 from dariocravero/patch-2
Browse files Browse the repository at this point in the history
Use a fake JSON endpoint for the examples
  • Loading branch information
jhollingworth committed Feb 10, 2015
2 parents 1080a49 + df8d990 commit eb2c117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_guides/stores/fetching-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Using the example of getting a user, you would have a UserHttpAPI (Which is an [
var UserHttpAPI = Marty.createStateSource({
type: 'http',
getUser: function (userId) {
return this.get('/users/' + userId).then(function (res) {
return this.get('http://jsonplaceholder.typicode.com/users/' + userId).then(function (res) {
UserSourceActionCreators.receiveUser(res.body);
});
}
Expand Down

0 comments on commit eb2c117

Please sign in to comment.