RePod-Nextcloud-App/src/router.js

21 lines
370 B
JavaScript
Raw Normal View History

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