Skip to content

Commit

Permalink
Centralized http request
Browse files Browse the repository at this point in the history
  • Loading branch information
ruddenchaux committed Jul 25, 2018
1 parent 68d0cd0 commit f175d4d
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 236 deletions.
4 changes: 4 additions & 0 deletions src/http/Http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export default class Http {
Axios.interceptors.response.use(responseInterceptor)
}

public request<T>(config: AxiosRequestConfig): AxiosPromise<T> {
return this.axiosInstance.request<T>(config);
}

public head (
url: string,
config?: AxiosRequestConfig
Expand Down
Loading

0 comments on commit f175d4d

Please sign in to comment.