repod/src/router.js

24 lines
397 B
JavaScript
Raw Normal View History

2023-07-02 16:30:42 +00:00
import Discover from './views/Discover.vue'
2023-07-29 15:53:51 +00:00
import Feed from './views/Feed.vue'
2023-07-02 16:30:42 +00:00
import Router from 'vue-router'
import Vue from 'vue'
import { generateUrl } from '@nextcloud/router'
Vue.use(Router)
const router = new Router({
base: generateUrl('apps/repod'),
routes: [
{
path: '/',
component: Discover,
},
2023-07-29 15:53:51 +00:00
{
2023-08-02 09:33:48 +00:00
path: '/:url',
2023-07-29 15:53:51 +00:00
component: Feed,
},
2023-07-02 16:30:42 +00:00
],
})
export default router