aboutsummaryrefslogtreecommitdiff
path: root/src/main.ts
blob: f6d3ea7fa597b649e3c684bec876a1f8eff95b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import './assets/main.scss'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import * as bootstrap from 'bootstrap'

import 'vue-toast-notification/dist/theme-sugar.css'

axios.defaults.baseURL = '/api'
axios.defaults.headers.common['Authorization'] = `Bearer ${localStorage.getItem('authToken')}`
axios.defaults.headers.post['Content-Type'] = 'application/json'

const app = createApp(App)

app.use(router)

app.mount('#app')