mirror of
https://codeberg.org/ashley/poke
synced 2026-04-09 10:27:58 +00:00
try undici
This commit is contained in:
@@ -103,7 +103,6 @@ app.get("/", (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const apiUrls = [
|
const apiUrls = [
|
||||||
"https://returnyoutubedislikeapi.com/votes?videoId=",
|
|
||||||
"https://ipv6-t.poketube.fun/api?v=",
|
"https://ipv6-t.poketube.fun/api?v=",
|
||||||
"https://prod-poketube.testing.poketube.fun/api?v="
|
"https://prod-poketube.testing.poketube.fun/api?v="
|
||||||
];
|
];
|
||||||
@@ -112,6 +111,8 @@ const apiUrls = [
|
|||||||
const cache = {};
|
const cache = {};
|
||||||
|
|
||||||
app.get("/api", async (req, res) => {
|
app.get("/api", async (req, res) => {
|
||||||
|
const { fetch } = await import("undici")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const cacheKey = req.query.v;
|
const cacheKey = req.query.v;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user