rename init to initAPi

This commit is contained in:
Matthias 2021-08-28 14:19:35 +02:00
parent dd0589776c
commit fe8ea0afdf
2 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@ import './plugins/bootstrap-vue';
import App from './App.vue'; import App from './App.vue';
import store from './store'; import store from './store';
import router from './router'; import router from './router';
import { init } from './shared/apiService'; import { initApi } from './shared/apiService';
init(store); initApi(store);
Vue.config.productionTip = false; Vue.config.productionTip = false;

View File

@ -11,7 +11,7 @@ export const api = axios.create({
* Initialize api so store is accessible. * Initialize api so store is accessible.
* @param store Vuex store * @param store Vuex store
*/ */
export function init(store) { export function initApi(store) {
api.interceptors.request.use( api.interceptors.request.use(
(config) => { (config) => {
const custconfig = config; const custconfig = config;