-
-
Save ammezie/bc7cad2617bd1a60c310ba1736218485 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('./bootstrap'); | |
import "../sass/chat.sass"; | |
window.Vue = require('vue'); | |
window.axios = require('axios'); | |
window.VueRouter=require('vue-router').default; | |
const Chat = Vue.component('chat', require('./components/Chat.vue').default); | |
const Admin = Vue.component('admin', require('./components/AdminChat.vue').default); | |
Vue.prototype.$baseurl = "https://localhost:8000"; | |
window.router = new VueRouter({ | |
routes:[ | |
{ | |
path: '/', | |
name: 'chat', | |
component: Chat, | |
}, | |
{ | |
path: '/admin', | |
name: 'admin', | |
component: Admin, | |
} | |
], | |
}) | |
const app = new Vue({ | |
router, | |
el: '#app', | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment