---
api/redirects.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/api/redirects.js b/api/redirects.js
index e940798..2b1880e 100644
--- a/api/redirects.js
+++ b/api/redirects.js
@@ -16,5 +16,10 @@ module.exports = [
*/
return redirect(`/watch?v=${fill[0]}${url.search.replace(/^\?/, "&")}`, 301)
}
+ },
+ {
+ route: `/(watch|w|v|shorts)/(${constants.regex.video_id})`, priority: -1, methods: ["GET"], code: async ({fill, url}) => {
+ return redirect(`/watch?v=${fill[1]}${url.search.replace(/^\?/, "&")}`, 301)
+ }
}
]
--
2.29.2