Skip to content

Commit

Permalink
Merge pull request #1 from NetMelon/fetch-example-fix
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
NetMelon authored Apr 2, 2020
2 parents 982a706 + e04c448 commit 69f41b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var data = {
};
const restServer = new FakeRest.FetchServer('http://localhost:3000');
restServer.init(data);
fetchMock.mock('^http://localhost:3000', restServer.getHandler());
fetchMock.mock('begin:http://localhost:3000', restServer.getHandler());
```

FakeRest will now intercept every XmlHTTPResquest to the REST server. The handled routes for collections of items are:
Expand Down

0 comments on commit 69f41b2

Please sign in to comment.