2020-12-09 13:33:29 +00:00
|
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
|
|
|
|
const routes = [{
|
|
|
|
path: '/watch',
|
|
|
|
name: 'Watch',
|
2021-01-01 20:05:44 +00:00
|
|
|
component: () => import('../components/WatchVideo.vue')
|
2020-12-09 13:33:29 +00:00
|
|
|
}, {
|
|
|
|
path: '/',
|
|
|
|
name: 'Trending',
|
2021-01-01 20:05:44 +00:00
|
|
|
component: () => import('../components/TrendingPage.vue')
|
2020-12-09 13:33:29 +00:00
|
|
|
}, {
|
|
|
|
path: '/channel/:channelId',
|
|
|
|
name: 'Channel',
|
2021-01-01 20:05:44 +00:00
|
|
|
component: () => import('../components/Channel.vue')
|
2020-12-09 13:33:29 +00:00
|
|
|
}, {
|
|
|
|
path: '/preferences',
|
|
|
|
name: 'Preferences',
|
2021-01-01 20:05:44 +00:00
|
|
|
component: () => import('../components/Preferences.vue')
|
2020-12-09 13:33:29 +00:00
|
|
|
}, {
|
|
|
|
path: '/results',
|
|
|
|
name: 'SearchResults',
|
2021-01-01 20:05:44 +00:00
|
|
|
component: () => import('../components/SearchResults.vue')
|
2021-01-04 05:48:18 +00:00
|
|
|
}, {
|
|
|
|
path: '/playlist',
|
|
|
|
name: 'Playlist',
|
|
|
|
component: () => import('../components/Playlist.vue')
|
2020-12-09 13:33:29 +00:00
|
|
|
}]
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHistory(),
|
|
|
|
routes
|
|
|
|
})
|
|
|
|
|
|
|
|
export default router
|