mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-12-22 13:07:00 +00:00
Add redirects for /watch/, /w/, /v/, /shorts/
This commit is contained in:
parent
7fee8b21bc
commit
cfe5209531
@ -3,7 +3,7 @@ const {redirect} = require("pinski/plugins")
|
||||
|
||||
module.exports = [
|
||||
{
|
||||
route: `/(${constants.regex.video_id})`, priority: -1, methods: ["GET"], code: async ({fill, url}) => {
|
||||
route: `/(?:watch/|w/|v/|shorts/)?(${constants.regex.video_id})`, priority: -1, methods: ["GET"], code: async ({fill, url}) => {
|
||||
/*
|
||||
Why not URLSearchParams?
|
||||
URLSearchParams is an unordered map, and URLs are more
|
||||
|
Loading…
Reference in New Issue
Block a user