Skip to content

Commit 93f9f42

Browse files
author
Pooya Parsa
committed
update readme
1 parent 0d3be17 commit 93f9f42

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,11 @@ You can easily integrate Axios with [Proxy Module](https://github.com/nuxt-commu
336336
**Note:** It is not required to manually register `@nuxtjs/proxy` module.
337337

338338
**Note:** `/api/` will be added to all requests to the API end point. If you need to remove it use `pathRewrite`:
339+
339340
```js
340-
{ '/api/': 'http://api.example.com', pathRewrite: { '^/api/', '' } }
341+
proxy: {
342+
'/api/': { target: 'http://api.example.com', pathRewrite: {'^/api/', ''} }
343+
}
341344
```
342345

343346
### `credentials`

0 commit comments

Comments
 (0)