repod/src/router.js
Michel Roux 53543a259f
All checks were successful
repod / xml (push) Successful in 30s
repod / php (push) Successful in 1m5s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
fix: 🐛 fix description bug
2024-08-10 20:59:15 +02:00

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