text: import axios from 'axios';
  
  const env = import.meta.env.VITE_HTTP_ENV || 'test';
  
  const service = axios.create({
      baseURL: import.meta.env.VITE_HTTP_ENV,
      timeout: 15000
  });
  
  service.interceptors.request.use(
      config => {
          return config;
      },
      error => {
          console.log(error);
          return Promise.reject();
      }
  );
  
  service.interceptors.response.use(
      response => {
          if (response.status === 200) {
              return response.data;
          } else {
              Promise.reject();
          }
      },
      error => {
          console.log(error);
          return Promise.reject();
      }
  );
  
  export default service;
  