import axios from "./config.mjs";
const useHttp = (dataHandler) => {
  const http = axios();
  if (dataHandler) {
    http.interceptors.response.use(dataHandler, (error) => {
      return Promise.reject(error);
    });
  }
  return http;
};
export {
  useHttp as default
};
