From 33c65d3799710aaa83cb01edc3f2b4bc3ade55dd Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 29 Aug 2022 18:59:29 +0200 Subject: [PATCH] new url :3 --- server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index 931c4c34..88255289 100644 --- a/server.js +++ b/server.js @@ -365,7 +365,7 @@ app.get("/old/watch", async function (req, res) { 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 h = await trends.text(); const k = JSON.parse(toJson(h)); @@ -459,8 +459,8 @@ app.get("/video/upload", (req, res) => { res.redirect("https://youtube.com/upload"); }); -app.get("/", async function (req, res) { - res.redirect("/discover"); +app.get("/discover", async function (req, res) { + res.redirect("/"); }); app.get("/api/video/download", async function (req, res) {