mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-10-15 11:58:19 +00:00
Add support for /watch/, /embed/, /w/, /v/, /shorts/
This commit is contained in:
@@ -3,7 +3,26 @@ import { createRouter, createWebHistory } from "vue-router";
|
||||
const routes = [
|
||||
{
|
||||
path: "/watch",
|
||||
name: "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"),
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user