2024-08-27 07:42:52 +00:00
|
|
|
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'
|
2024-08-17 15:56:12 +00:00
|
|
|
import Home from './views/Home.vue'
|
2023-07-02 16:30:42 +00:00
|
|
|
import { generateUrl } from '@nextcloud/router'
|
|
|
|
|
2024-08-08 15:20:54 +00:00
|
|
|
const router = createRouter({
|
2024-08-27 07:42:52 +00:00
|
|
|
history: createWebHistory(generateUrl('apps/repod')),
|
2023-07-02 16:30:42 +00:00
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
2024-08-17 15:56:12 +00:00
|
|
|
component: Home,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/discover',
|
2023-07-02 16:30:42 +00:00
|
|
|
component: Discover,
|
|
|
|
},
|
2023-07-29 15:53:51 +00:00
|
|
|
{
|
2024-08-27 07:42:52 +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
|