mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-25 08:58:38 +01:00
add more redirects
This commit is contained in:
parent
469d44150e
commit
f177f45a99
1 changed files with 16 additions and 0 deletions
|
@ -37,6 +37,22 @@ module.exports = function (app, config, renderTemplate) {
|
|||
return res.redirect(`/watch?v=${req.params.id}&from=short`);
|
||||
});
|
||||
|
||||
app.get("/v/:id", (req, res) => {
|
||||
if (!req.params.id) {
|
||||
return res.redirect("/");
|
||||
}
|
||||
|
||||
return res.redirect(`/watch?v=${req.params.id}&from=v_url`);
|
||||
});
|
||||
|
||||
app.get("/c/:id", (req, res) => {
|
||||
if (!req.params.id) {
|
||||
return res.redirect("/");
|
||||
}
|
||||
|
||||
return res.redirect(`/channel?id=${req.params.id}&from=c_channel_url`);
|
||||
});
|
||||
|
||||
app.get("/video/upload", (req, res) => {
|
||||
res.redirect("https://youtube.com/upload");
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue