mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-10-14 03:21:05 +00:00
Initial commit.
A WIP front end.
This commit is contained in:
20
src/router/router.js
Normal file
20
src/router/router.js
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
Reference in New Issue
Block a user