21 lines
370 B
JavaScript
21 lines
370 B
JavaScript
import Discover from './views/Discover.vue'
|
|
import Feed from './views/Feed.vue'
|
|
import { createRouter } from 'vue-router'
|
|
import { generateUrl } from '@nextcloud/router'
|
|
|
|
const router = createRouter({
|
|
base: generateUrl('apps/repod'),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
component: Discover,
|
|
},
|
|
{
|
|
path: '/:url',
|
|
component: Feed,
|
|
},
|
|
],
|
|
})
|
|
|
|
export default router
|