24 lines
445 B
JavaScript
Vendored
24 lines
445 B
JavaScript
Vendored
require('./bootstrap');
|
|
|
|
axios.get('/api/auth')
|
|
.then(res => {
|
|
if (!res.data.status) {
|
|
window.location.href = '/login';
|
|
}
|
|
});
|
|
|
|
// Import Vue.js
|
|
window.Vue = require('vue');
|
|
import router from './router-app-admin';
|
|
|
|
import App from './apps/AppAdmin.vue'
|
|
|
|
// Create the Vue.js application
|
|
const app = Vue.createApp(App);
|
|
|
|
// Register plugins
|
|
app.use(router);
|
|
|
|
// Mount and start using Vue.js
|
|
app.mount('#app');
|