mirror of
https://codeberg.org/ashley/poke
synced 2025-05-30 02:59:43 +00:00
Update src/libpoketube/init/pages-api.js
This commit is contained in:
parent
ac979c3bdc
commit
e4da5d48d4
@ -229,7 +229,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||||||
|
|
||||||
let f = await modules.fetch(url, {
|
let f = await modules.fetch(url, {
|
||||||
method: req.method,
|
method: req.method,
|
||||||
headers: headers, // Add headers to the fetch request
|
headers: headers,
|
||||||
});
|
});
|
||||||
|
|
||||||
f.body.pipe(res);
|
f.body.pipe(res);
|
||||||
@ -321,7 +321,7 @@ const { useragent, ...configWithoutUA } = cnf;
|
|||||||
const url = `https://raw.githubusercontent.com/ashley0143/poke/main/instances.json`;
|
const url = `https://raw.githubusercontent.com/ashley0143/poke/main/instances.json`;
|
||||||
|
|
||||||
let f = await fetch(url, {
|
let f = await fetch(url, {
|
||||||
headers: headers, // Add headers to the fetch request
|
headers: headers,
|
||||||
})
|
})
|
||||||
.then((res) => res.text())
|
.then((res) => res.text())
|
||||||
.then((json) => JSON.parse(json));
|
.then((json) => JSON.parse(json));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user