Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NetMelon authored Apr 2, 2020
1 parent 982a706 commit e04c448
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 e04c448

Please sign in to comment.