1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 04:14:39 -05:00

new url :3

This commit is contained in:
Ashley 2022-08-29 18:59:29 +02:00
parent 224a989aef
commit 33c65d3799

View file

@ -365,7 +365,7 @@ app.get("/old/watch", async function (req, res) {
res.redirect(`/watch?v=${v}`); res.redirect(`/watch?v=${v}`);
}); });
app.get("/discover", async function (req, res) { app.get("/", async function (req, res) {
const trends = await fetch(config.tubeApi + `trending`); const trends = await fetch(config.tubeApi + `trending`);
const h = await trends.text(); const h = await trends.text();
const k = JSON.parse(toJson(h)); const k = JSON.parse(toJson(h));
@ -459,8 +459,8 @@ app.get("/video/upload", (req, res) => {
res.redirect("https://youtube.com/upload"); res.redirect("https://youtube.com/upload");
}); });
app.get("/", async function (req, res) { app.get("/discover", async function (req, res) {
res.redirect("/discover"); res.redirect("/");
}); });
app.get("/api/video/download", async function (req, res) { app.get("/api/video/download", async function (req, res) {