Initial Websockets, Rooms & Players done
This commit is contained in:
31
src/main.js
31
src/main.js
@@ -1,8 +1,31 @@
|
||||
import Vue from 'vue'
|
||||
import App from './App.vue'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
import VueRouter from 'vue-router';
|
||||
Vue.use(VueRouter);
|
||||
|
||||
new Vue({
|
||||
render: h => h(App),
|
||||
}).$mount('#app')
|
||||
import VueAxios from 'vue-axios';
|
||||
import axios from 'axios';
|
||||
Vue.use(VueAxios, axios);
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
|
||||
import Home from './components/Home.vue';
|
||||
import Game from './components/Game.vue';
|
||||
|
||||
const routes = [
|
||||
{
|
||||
name: 'home',
|
||||
path: '/',
|
||||
component: Home
|
||||
},
|
||||
{
|
||||
name: 'game',
|
||||
path: '/game/:id',
|
||||
component: Game
|
||||
}
|
||||
];
|
||||
|
||||
const router = new VueRouter({ mode: 'history', routes: routes});
|
||||
|
||||
new Vue(Vue.util.extend({ router }, App)).$mount('#app');
|
||||
Reference in New Issue
Block a user