add redirects to results

This commit is contained in:
Ashley 2022-12-15 15:53:01 +00:00
parent 5ea6a7cdb8
commit ec84b600f4

View file

@ -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);
});
};