mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-01 10:07:24 +01:00
Superinit!!!
This commit is contained in:
parent
298b89f31a
commit
1bd2b5d075
1 changed files with 28 additions and 0 deletions
28
src/libpoketube/init/pages-redir.js
Normal file
28
src/libpoketube/init/pages-redir.js
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
const { fetcher,core, wiki,musicInfo, modules, version, initlog, init,} = require("../libpoketube-initsys.js");
|
||||||
|
const {
|
||||||
|
IsJsonString,
|
||||||
|
convert,
|
||||||
|
getFirstLine,
|
||||||
|
capitalizeFirstLetter,
|
||||||
|
turntomins,
|
||||||
|
getRandomInt,
|
||||||
|
getRandomArbitrary,
|
||||||
|
} = require("../ptutils/libpt-coreutils.js");
|
||||||
|
|
||||||
|
const sha384 = modules.hash;
|
||||||
|
|
||||||
|
module.exports = function (app,config, renderTemplate) {
|
||||||
|
|
||||||
|
|
||||||
|
app.get("/hashtag/:id", (req, res) => {
|
||||||
|
if (!req.params.id) {
|
||||||
|
return res.redirect("/");
|
||||||
|
}
|
||||||
|
|
||||||
|
return res.redirect(`/search?query=${req.params.id}&from=hashtag`);
|
||||||
|
});
|
||||||
|
|
||||||
|
app.get("/video/upload", (req, res) => {
|
||||||
|
res.redirect("https://youtube.com/upload");
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in a new issue