add service
This commit is contained in:
1 parent
69fdb3a933
commit
b74faa3997
6 files changed
+64
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
||||
|
||||
const httpClient: AxiosInstance = axios.create({
|
||||
timeout: 30000,
|
||||
headers: {
|
||||
'Content-type': 'application/json'
|
||||
}
|
||||
});
|
||||
|
||||
// const httpClient = (options: AxiosRequestConfig): Promise<AxiosResponse> => instance.request(options);
|
||||
|
||||
export default httpClient;
|
||||
Reference in new issue
Block a user