boussole-pluss/frontend/utils/api.ts

11 lines
244 B
TypeScript
Raw Normal View History

2022-10-07 14:15:53 +00:00
import type { NuxtAxiosInstance } from '@nuxtjs/axios'
/* eslint import/no-mutable-exports: 0 */
let $axios: NuxtAxiosInstance;
export function initializeAxios(axiosInstance: NuxtAxiosInstance) {
$axios = axiosInstance
}
export { $axios }