diff --git a/src/router.js b/src/router.js index 6954e19..9d40487 100644 --- a/src/router.js +++ b/src/router.js @@ -1,5 +1,7 @@ import Items from './views/Items'; import Boxes from './views/Boxes'; +import Files from './views/Files'; +import Events from './views/Events'; import Error from './views/Error'; import VueRouter from 'vue-router'; import Vue from 'vue'; @@ -11,8 +13,12 @@ Vue.use(VueRouter); const routes = [ { path: '/', redirect: '/36C3/items' }, { path: '/howto', component: Error}, + { path: '/admin/files', name: 'files', component: Files}, + { path: '/admin/events', name: 'events', component: Events}, { path: '/:event/boxes', name: 'boxes', component: Boxes}, { path: '/:event/items', name: 'items', component: Items}, + { path: '/:event/box/:uid', name: 'boxes', component: Boxes}, + { path: '/:event/item/:uid', name: 'items', component: Items}, { path: '*', component: Error}, ]; diff --git a/src/views/Events.vue b/src/views/Events.vue new file mode 100644 index 0000000..0923680 --- /dev/null +++ b/src/views/Events.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/src/views/Files.vue b/src/views/Files.vue new file mode 100644 index 0000000..dd33e04 --- /dev/null +++ b/src/views/Files.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file