diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-10-04 20:31:21 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-10-04 20:31:21 +0530 |
commit | 92fb85b8afaacc4a8b5dbb41eea2d0e35eeb6862 (patch) | |
tree | 1b7bd25a29d0751f3efbd5e1125a1b079a31045c /src/main.ts |
first commitv0.0.1
Diffstat (limited to 'src/main.ts')
-rw-r--r-- | src/main.ts | 19 |
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') |