Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
keenondrums committed Jul 20, 2018
1 parent 26e6d5d commit 503b27a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ interceptorUrlFormatter is always applied. interceptorAuthorizationToken you hav
You can do it like this:

```ts
import { ResourceBuilder, interceptorAuthorizationToken } from "axios-rest-resource";
import {
ResourceBuilder,
interceptorAuthorizationToken
} from "axios-rest-resource";

export const resourceBuilder = new ResourceBuilder({
baseUrl: "http://localhost:3000",
Expand Down Expand Up @@ -178,7 +181,10 @@ export const resourceBuilder = new ResourceBuilder(createAxiosInstanceFromUrl);
As you can see there's a lot you have to remember. Not to keep all those things in mind you utilize [createAxiosResourceFactory](docs/api/README.md#createaxiosresourcefactory).

```ts
import { ResourceBuilder, createAxiosResourceFactory } from "axios-rest-resource";
import {
ResourceBuilder,
createAxiosResourceFactory
} from "axios-rest-resource";
import { AxiosInstance } from "axios";

const createAxiosResource = createAxiosResourceFactory({
Expand Down

0 comments on commit 503b27a

Please sign in to comment.