From b0e97f4e2af86f2b48f1b62657174eb01c50e2f3 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 28 Oct 2022 17:32:44 +0200 Subject: [PATCH] FIX A BUG --- server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index ebaedbf4..180e545b 100644 --- a/server.js +++ b/server.js @@ -576,6 +576,7 @@ app.get("/api/redirect", async (req, res) => { res.redirect(red_url); }); +/* app.get("/api/v1/:endpoint/:id", async (req, res) => { var inv_api_fetch = await fetch( `${config.invapi}/${req.params.endpoint}/${req.params.id}` @@ -585,6 +586,7 @@ app.get("/api/v1/:endpoint/:id", async (req, res) => { res.send(inv_api_fetch); }); +*/ app.get("/api/opensearch", async (req, res) => { res.sendFile(__dirname + `/opensearch.xml`); @@ -623,7 +625,7 @@ app.get("/", async function (req, res) { if (!req.query.tab) var tab = ""; const invtrend = await fetch( - `https://inv.vern.cc/api/v1/trending${tab}` + `https://vid.puffyan.us/api/v1/trending${tab}` ).then((res) => res.text()); const t = JSON.parse(invtrend);