add redirects to results

This commit is contained in:
Ashley 2022-12-15 15:53:01 +00:00
parent 945664d066
commit c3b3a15a13

View file

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