2019-12-05 03:32:33 +00:00
|
|
|
import Items from './views/Items';
|
2019-12-05 22:27:24 +00:00
|
|
|
import Boxes from './views/Boxes';
|
|
|
|
import Error from './views/Error';
|
2019-12-05 03:32:33 +00:00
|
|
|
import VueRouter from 'vue-router';
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
|
|
const routes = [
|
2019-12-05 22:27:24 +00:00
|
|
|
{ path: '/', redirect: '/items/36C3' },
|
|
|
|
{ path: '/boxes/:event', component: Boxes},
|
|
|
|
{ path: '/items/:event', component: Items},
|
|
|
|
{ path: '*', component: Error},
|
2019-12-05 03:32:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
mode: 'history',
|
|
|
|
routes
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router;
|