Skip to content

Commit

Permalink
docs: Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Aug 7, 2019
1 parent 44a830e commit aa31cd6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Here is a basic example:
* It should not be modified by hand.
*/

import {AxiosInstance} from 'axios';
import {AxiosInstance, AxiosRequestConfig} from 'axios';

export class ExchangeService {
private readonly apiClient: AxiosInstance;
Expand All @@ -66,8 +66,11 @@ export class ExchangeService {
}

deleteExchange = async (id: number): Promise<void> => {
const resource = `/api/v1/exchange/${id}`;
await this.apiClient.delete(resource);
const config: AxiosRequestConfig = {
method: 'delete',
url: `/api/v1/exchange/${id}`,
};
await this.apiClient.request(config);
};
}
```
Expand Down

0 comments on commit aa31cd6

Please sign in to comment.