Skip to content

Commit 6c56b18

Browse files
committed
Updates the simple use-case snippet
1 parent 235d55b commit 6c56b18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ The following example is using the [simplified syntax](simplified-syntax.md).
3434

3535
```javascript
3636
import axios from 'axios';
37-
import { HttpMiddlewareService } from 'axios-middleware';
37+
import { Service } from 'axios-middleware';
3838

39-
const service = new HttpMiddlewareService(axios);
39+
const service = new Service(axios);
4040

4141
service.register({
4242
onRequest(config) {
@@ -70,4 +70,4 @@ onResponse
7070
Received: {userId: 1, id: 1, title: "sunt aut facere repellat provident occaecati excepturi optio reprehenderit", body: "quia et suscipit↵suscipit recusandae consequuntur …strum rerum est autem sunt rem eveniet architecto"}
7171
```
7272

73-
[**Demo snippet**](https://jsfiddle.net/emileber/sfqo0rt1/)
73+
[**Demo snippet**](https://jsfiddle.net/emileber/sfqo0rt1/5/)

0 commit comments

Comments
 (0)