axiosConfig.ts 212 Bytes
Newer Older
Maxym Borodenko's avatar
Maxym Borodenko committed
1
2
import axios from 'axios';

3
4
import ApiError from 'model/ApiError';

Maxym Borodenko's avatar
Maxym Borodenko committed
5
6
7
axios.interceptors.response.use((response) => {
    return response;
}, (error) => {
8
    return Promise.reject(ApiError.axiosError(error));
Maxym Borodenko's avatar
Maxym Borodenko committed
9
});