add some more routes
This commit is contained in:
parent
aff6186a53
commit
52dcab03ba
3 changed files with 32 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
import Items from './views/Items';
|
import Items from './views/Items';
|
||||||
import Boxes from './views/Boxes';
|
import Boxes from './views/Boxes';
|
||||||
|
import Files from './views/Files';
|
||||||
|
import Events from './views/Events';
|
||||||
import Error from './views/Error';
|
import Error from './views/Error';
|
||||||
import VueRouter from 'vue-router';
|
import VueRouter from 'vue-router';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
@ -11,8 +13,12 @@ Vue.use(VueRouter);
|
||||||
const routes = [
|
const routes = [
|
||||||
{ path: '/', redirect: '/36C3/items' },
|
{ path: '/', redirect: '/36C3/items' },
|
||||||
{ path: '/howto', component: Error},
|
{ 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/boxes', name: 'boxes', component: Boxes},
|
||||||
{ path: '/:event/items', name: 'items', component: Items},
|
{ 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},
|
{ path: '*', component: Error},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
13
src/views/Events.vue
Normal file
13
src/views/Events.vue
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<template>
|
||||||
|
<p>Events</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Events',
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
13
src/views/Files.vue
Normal file
13
src/views/Files.vue
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<template>
|
||||||
|
<p>Files</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Files',
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
Loading…
Reference in a new issue