From 1db878c7462007ccb463f892345900666f5713e5 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 15 Jul 2022 16:41:26 +0300 Subject: [PATCH] Update server.js --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index f28e1edc..4b49be87 100644 --- a/server.js +++ b/server.js @@ -190,7 +190,7 @@ app.get("/old/watch", async function (req, res) { lyrics: lyrics.replace(/\n/g, "
"), }); }); -app.get("/feed/discover/trends", async function (req, res) { +app.get("/discover", async function (req, res) { const trends = await fetch(config.tubeApi + `trending`); const h = await trends.text(); const k = JSON.parse(toJson(h)); @@ -263,7 +263,7 @@ app.get("/video/upload", (req, res) => { res.redirect("https://youtube.com/upload?from=poketube_utc"); }); app.get("/", (req, res) => { - res.redirect("/feed/discover/trends?param=/"); + res.redirect("/discover"); }); app.get("/api/video/download", async function (req, res) { var v = req.query.v;