repod/src/router.js
Michel Roux 68c6f8234e
All checks were successful
repod / nextcloud (push) Successful in 55s
repod / nodejs (push) Successful in 1m24s
Encode url in base64
2023-08-02 11:33:48 +02:00

24 lines
397 B
JavaScript

import Discover from './views/Discover.vue'
import Feed from './views/Feed.vue'
import Router from 'vue-router'
import Vue from 'vue'
import { generateUrl } from '@nextcloud/router'
Vue.use(Router)
const router = new Router({
base: generateUrl('apps/repod'),
routes: [
{
path: '/',
component: Discover,
},
{
path: '/:url',
component: Feed,
},
],
})
export default router