aboutsummaryrefslogtreecommitdiff
path: root/client/src/main.js
blob: 5ab733a2d51db0823b99ac6cf90535f4ee2681c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import {createApp} from 'vue';
import axios from 'axios';

const tokenInStorage = localStorage.getItem('token');
if (tokenInStorage) {
  axios.defaults.headers.common['Authorization'] = `Bearer ${tokenInStorage}`;
}

import App from './App.vue';
import router from './router';
import store from './store';

import './assets/bootstrap.scss';
import 'bootstrap';

createApp(App)
  .use(store)
  .use(router)
  .mount('#app');