aboutsummaryrefslogtreecommitdiff
path: root/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main.ts b/src/main.ts
new file mode 100644
index 0000000..f6d3ea7
--- /dev/null
+++ b/src/main.ts
@@ -0,0 +1,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')