From 7cbf0f38bba4644428b2b6d45d71cbd4f3d9882f Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 23 Sep 2023 18:26:08 +0000 Subject: [PATCH] add stuff :3 --- p/server.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/p/server.js b/p/server.js index 739b3a58..2dc6a58d 100644 --- a/p/server.js +++ b/p/server.js @@ -24,8 +24,6 @@ const URL_WHITELIST = [ "unpkg.com", "youtube.com", "returnyoutubedislikeapi.com", - "invidious.sethforprivacy.com", - "invidious.weblibre.org", "inv.vern.cc", "invidious.privacydev.net", "inv.zzls.xyz", @@ -91,10 +89,18 @@ const listener = (req, res) => { proxy(req, res); }; -app.get("/", (req, res) => - res.redirect(`https://poketube.fun/watch?v=l3eww1dnd0k`) -); - +app.get("/", (req, res) => { + + var json = { + status:"200", + version:"1.0.0", + URL_WHITELIST, + cache:"max-age-1848", + } + + res.json(json) +}); + const apiUrl = "https://returnyoutubedislikeapi.com/votes?videoId="; // Define a cache object