SotM_Playfield/src/index.js

25 lines
494 B
JavaScript
Raw Normal View History

2018-12-28 10:46:01 -05:00
import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './App.vue';
import DeckIndex from './DeckIndex.vue';
import Editor from './Editor.vue';
import Err404 from './404.vue';
2018-12-28 10:46:01 -05:00
Vue.use(VueRouter);
const router = new VueRouter({
mode: 'history',
2018-12-28 10:46:01 -05:00
routes: [
{path: '/', component: DeckIndex},
{path: '/edit/:deckID', component: Editor, props: true},
{path: '*', component: Err404},
2018-12-28 10:46:01 -05:00
],
});
new Vue({
el: '#charSheet',
render: h => h(App),
router,
});