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'
|
2020-11-12 20:42:02 +00:00
|
|
|
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
|
2020-11-12 20:42:02 +00:00
|
|
|
}, {
|
|
|
|
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
|