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