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