mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-24 04:28:03 +01:00
lol
This commit is contained in:
parent
d097ee3219
commit
edf4b507a2
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||
});
|
||||
|
||||
app.get("/avatars/ytc/:v", async function (req, res) {
|
||||
const { fetch } = await import("undici");
|
||||
const { fetch } = await import("undici");
|
||||
|
||||
var url = `https://invid-api.poketube.fun/ggpht/ytc/${req.params.v.replace(
|
||||
"ytc",
|
||||
|
@ -99,7 +99,7 @@ const { fetch } = await import("undici");
|
|||
method: req.method,
|
||||
});
|
||||
|
||||
f.body.pipe(res);
|
||||
Readable.fromWeb(f.body).pipe(res);
|
||||
});
|
||||
|
||||
app.get("/api/search", async (req, res) => {
|
||||
|
|
Loading…
Reference in a new issue