From e04c448a0e29565d377baa13fe10b886d092679b Mon Sep 17 00:00:00 2001 From: NetMelon Date: Thu, 2 Apr 2020 14:47:32 +0200 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 614f114..d208c94 100644 --- a/README.md +++ b/README.md @@ -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: