mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 16:29:02 +01:00
add redirects to results
This commit is contained in:
parent
5ea6a7cdb8
commit
ec84b600f4
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) => {
|
||||
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