mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 19:29:03 +01:00
add more redirects
This commit is contained in:
parent
ecac0323b7
commit
3f7bd826f5
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`);
|
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) => {
|
app.get("/video/upload", (req, res) => {
|
||||||
res.redirect("https://youtube.com/upload");
|
res.redirect("https://youtube.com/upload");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue