From 92fb85b8afaacc4a8b5dbb41eea2d0e35eeb6862 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 4 Oct 2023 20:31:21 +0530 Subject: first commit --- src/main.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main.ts (limited to 'src/main.ts') 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') -- cgit v1.2.3