Piped/src/router/router.js

71 lines
1.7 KiB
JavaScript
Raw Normal View History

import { createRouter, createWebHistory } from "vue-router";
2020-12-09 13:33:29 +00:00
const routes = [
{
path: "/watch",
component: () => import("../components/WatchVideo.vue"),
},
{
path: "/watch/:v",
component: () => import("../components/WatchVideo.vue"),
},
{
path: "/embed/:v",
component: () => import("../components/WatchVideo.vue"),
},
{
path: "/w/:v",
component: () => import("../components/WatchVideo.vue"),
},
{
path: "/v/:v",
component: () => import("../components/WatchVideo.vue"),
},
{
path: "/shorts/:v",
component: () => import("../components/WatchVideo.vue"),
},
{
path: "/",
name: "Trending",
component: () => import("../components/TrendingPage.vue"),
},
{
path: "/channel/:channelId",
2021-05-28 18:40:54 +00:00
name: "ChannelId",
component: () => import("../components/Channel.vue"),
},
{
path: "/c/:channelC",
name: "ChannelC",
component: () => import("../components/Channel.vue"),
},
{
path: "/user/:channelUser",
name: "ChannelUser",
component: () => import("../components/Channel.vue"),
},
{
path: "/preferences",
name: "Preferences",
component: () => import("../components/Preferences.vue"),
},
{
path: "/results",
name: "SearchResults",
component: () => import("../components/SearchResults.vue"),
},
{
path: "/playlist",
name: "Playlist",
component: () => import("../components/Playlist.vue"),
},
];
2020-12-09 13:33:29 +00:00
const router = createRouter({
history: createWebHistory(),
routes,
});
2020-12-09 13:33:29 +00:00
export default router;