import axios, { Axios } from 'axios';
import type { App } from 'vue';

export const $axios: Axios = axios.create({
  baseURL: import.meta.env.VITE_API_URL,
});

export default {
  install: (app: App) => {
    app.config.globalProperties.$axios = $axios;
  },
};
