mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 06:17:58 +01:00
add stuff :3
This commit is contained in:
parent
b95eee120e
commit
7cbf0f38bb
1 changed files with 12 additions and 6 deletions
18
p/server.js
18
p/server.js
|
@ -24,8 +24,6 @@ const URL_WHITELIST = [
|
||||||
"unpkg.com",
|
"unpkg.com",
|
||||||
"youtube.com",
|
"youtube.com",
|
||||||
"returnyoutubedislikeapi.com",
|
"returnyoutubedislikeapi.com",
|
||||||
"invidious.sethforprivacy.com",
|
|
||||||
"invidious.weblibre.org",
|
|
||||||
"inv.vern.cc",
|
"inv.vern.cc",
|
||||||
"invidious.privacydev.net",
|
"invidious.privacydev.net",
|
||||||
"inv.zzls.xyz",
|
"inv.zzls.xyz",
|
||||||
|
@ -91,10 +89,18 @@ const listener = (req, res) => {
|
||||||
proxy(req, res);
|
proxy(req, res);
|
||||||
};
|
};
|
||||||
|
|
||||||
app.get("/", (req, res) =>
|
app.get("/", (req, res) => {
|
||||||
res.redirect(`https://poketube.fun/watch?v=l3eww1dnd0k`)
|
|
||||||
);
|
var json = {
|
||||||
|
status:"200",
|
||||||
|
version:"1.0.0",
|
||||||
|
URL_WHITELIST,
|
||||||
|
cache:"max-age-1848",
|
||||||
|
}
|
||||||
|
|
||||||
|
res.json(json)
|
||||||
|
});
|
||||||
|
|
||||||
const apiUrl = "https://returnyoutubedislikeapi.com/votes?videoId=";
|
const apiUrl = "https://returnyoutubedislikeapi.com/votes?videoId=";
|
||||||
|
|
||||||
// Define a cache object
|
// Define a cache object
|
||||||
|
|
Loading…
Reference in a new issue