mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 05:34:40 -05:00
add redirects to results
This commit is contained in:
parent
945664d066
commit
c3b3a15a13
1 changed files with 12 additions and 0 deletions
|
@ -40,4 +40,16 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
app.get("/video/upload", (req, res) => {
|
app.get("/video/upload", (req, res) => {
|
||||||
res.redirect("https://youtube.com/upload");
|
res.redirect("https://youtube.com/upload");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.get("/sex", (req, res) => {
|
||||||
|
res.redirect("https://poketube.fun/watch?v=dQw4w9WgXcQ&e=f");
|
||||||
|
});
|
||||||
|
|
||||||
|
app.get("/results", (req, res) => {
|
||||||
|
if (!req.query.search_query) {
|
||||||
|
return res.redirect("/");
|
||||||
|
}
|
||||||
|
|
||||||
|
return res.redirect("/search?query=" + req.query.search_query);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue