mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-25 08:58:54 +01:00
try undici
This commit is contained in:
parent
52c38c5715
commit
eeb50942f7
1 changed files with 2 additions and 1 deletions
|
@ -103,7 +103,6 @@ app.get("/", (req, res) => {
|
|||
});
|
||||
|
||||
const apiUrls = [
|
||||
"https://returnyoutubedislikeapi.com/votes?videoId=",
|
||||
"https://ipv6-t.poketube.fun/api?v=",
|
||||
"https://prod-poketube.testing.poketube.fun/api?v="
|
||||
];
|
||||
|
@ -112,6 +111,8 @@ const apiUrls = [
|
|||
const cache = {};
|
||||
|
||||
app.get("/api", async (req, res) => {
|
||||
const { fetch } = await import("undici")
|
||||
|
||||
try {
|
||||
const cacheKey = req.query.v;
|
||||
|
||||
|
|
Loading…
Reference in a new issue