repod/src/router.ts

26 lines
501 B
TypeScript
Raw Permalink Normal View History

import { createRouter, createWebHistory } from 'vue-router'
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'
import Home from './views/Home.vue'
2023-07-02 16:30:42 +00:00
import { generateUrl } from '@nextcloud/router'
const router = createRouter({
history: createWebHistory(generateUrl('apps/repod')),
2023-07-02 16:30:42 +00:00
routes: [
{
path: '/',
component: Home,
},
{
path: '/discover',
2023-07-02 16:30:42 +00:00
component: Discover,
},
2023-07-29 15:53:51 +00:00
{
path: '/feed/:url',
2023-07-29 15:53:51 +00:00
component: Feed,
},
2023-07-02 16:30:42 +00:00
],
})
export default router