2021-04-07 11:45:40 +00:00
|
|
|
import { createRouter, createWebHistory } from "vue-router";
|
2020-12-09 13:33:29 +00:00
|
|
|
|
2021-04-07 11:45:40 +00:00
|
|
|
const routes = [
|
|
|
|
{
|
|
|
|
path: "/watch",
|
|
|
|
name: "Watch",
|
|
|
|
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",
|
2021-04-07 11:45:40 +00:00
|
|
|
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(),
|
2021-04-07 11:45:40 +00:00
|
|
|
routes,
|
|
|
|
});
|
2020-12-09 13:33:29 +00:00
|
|
|
|
2021-04-07 11:45:40 +00:00
|
|
|
export default router;
|