Piped/src/router/router.js

20 lines
430 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'
const routes = [{
path: '/watch',
name: 'Watch',
component: Watch
}, {
path: '/',
name: 'Trending',
component: Trending
}]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router