From 52dcab03ba268f51e8ae182e8139d39efbd84842 Mon Sep 17 00:00:00 2001 From: jedi Date: Tue, 24 Dec 2019 14:02:56 +0100 Subject: [PATCH] add some more routes --- src/router.js | 6 ++++++ src/views/Events.vue | 13 +++++++++++++ src/views/Files.vue | 13 +++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 src/views/Events.vue create mode 100644 src/views/Files.vue 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