1import axios from 'axios';
2
3const Api = axios.create({
4 baseURL: 'https://example/',
5});
6
7Api.interceptors.response.use(response => {
8 if (response.data.message && response.request._method !== 'GET') {
9 console.log(response.data.message);
10 }
11 return response;
12},