Piped/src/router/router.js

31 lines
711 B
JavaScript
Raw Normal View History

2020-11-11 09:20:57 +00:00
import { createRouter, createWebHistory } from 'vue-router'
import Watch from '../components/WatchVideo.vue'
import Trending from '../components/TrendingPage.vue'
import Channel from '../components/Channel.vue'
2020-11-17 05:15:35 +00:00
import Preferences from '../components/Preferences.vue'
2020-11-11 09:20:57 +00:00
const routes = [{
path: '/watch',
name: 'Watch',
component: Watch
}, {
path: '/',
name: 'Trending',
component: Trending
}, {
path: '/channel/:channelId',
name: 'Channel',
component: Channel
2020-11-17 05:15:35 +00:00
}, {
path: '/preferences',
name: 'Preferences',
component: Preferences
2020-11-11 09:20:57 +00:00
}]
const router = createRouter({
history: createWebHistory(),
routes
})
2020-11-17 05:15:35 +00:00
export default router