diff --git a/docs/content/en/advanced.md b/docs/content/en/advanced.md index 7761744..5d1561c 100644 --- a/docs/content/en/advanced.md +++ b/docs/content/en/advanced.md @@ -9,7 +9,7 @@ category: Getting Started Hooks can be used to globally intercept HTTP request and responses. E.g. if you wish to log errors, display a toast on error or need to dynamically modify requests. -See the [API reference](/api/#hooks) for the list of lifecycle hooks the HTTP module provides +See the [API reference](/hooks) for the list of lifecycle hooks the HTTP module provides These functions don't have to return anything by default. diff --git a/docs/content/en/migration.md b/docs/content/en/migration.md index b49acad..bcea3bd 100644 --- a/docs/content/en/migration.md +++ b/docs/content/en/migration.md @@ -15,12 +15,12 @@ The nuxt-community axios module is still supported and maintained. The HTTP modu ## Differences -- There is no scope for [`setHeader`](/api/#setheader), [`setToken`](/api/#settoken)
+- There is no scope for [`setHeader`](/helpers#setheader), [`setToken`](/helpers#settoken)
_When calling these methods they apply to the global scope and are used for all future requests_ - The axios hooks `onRequestError` and `onResponseError` are unified
-_Use the [`onError`](/api/#onerror) hook instead_ +_Use the [`onError`](/hooks#onerror) hook instead_ - The http module does not have a `debug` option like the axios module
-_You can setup a basic logger using the [`onRequest`](/api/#onrequest) hook_ +_You can setup a basic logger using the [`onRequest`](/hooks#onrequest) hook_ - Progress bar integration is not supported (for the moment)
_This option may be added again once [`PR #34: Add 'onProgress' option`](https://github.com/sindresorhus/ky/pull/34) for ky is merged_ diff --git a/docs/content/en/options.md b/docs/content/en/options.md index 34c632a..30c692c 100644 --- a/docs/content/en/options.md +++ b/docs/content/en/options.md @@ -35,7 +35,7 @@ Environment variable `API_URL` can be used to **override** `baseURL`. -`baseURL` and `proxy` won't work together, you will need to use [`prefix`](/api/#prefix) instead +`baseURL` and `proxy` won't work together, you will need to use [`prefix`](/options#prefix) instead diff --git a/docs/content/en/setup.md b/docs/content/en/setup.md index 8e7c218..e4aa81d 100644 --- a/docs/content/en/setup.md +++ b/docs/content/en/setup.md @@ -37,10 +37,10 @@ module.exports = { } ``` -See [http's options](/api/#options). +See [http's options](/options). Note that this module does not currently support IE 11 because of using [ky](https://github.com/sindresorhus/ky) ([open issue](https://github.com/nuxt/http/issues/126)) - \ No newline at end of file + diff --git a/docs/content/en/usage.md b/docs/content/en/usage.md index 7a8f8ec..1ed2ebf 100644 --- a/docs/content/en/usage.md +++ b/docs/content/en/usage.md @@ -7,7 +7,7 @@ category: Getting Started ## Making Requests -See the [API reference](/api/#http-methods) for a list of available HTTP methods +See the [API reference](/http-methods) for a list of available HTTP methods Calling a HTTP methods returns a Promise that resolves to a [Reponse](https://developer.mozilla.org/en-US/docs/Web/API/Response) object or rejects in case of network errors.