mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 18:37:49 +01:00
use the api key
This commit is contained in:
parent
a62433c6f9
commit
798688d105
1 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ app.use("/sb/i/:v/:imagePath/:img", async function (req, res) {
|
|||
app.get("/api/improving-poke/getsugesstions", async (req, res) => {
|
||||
const query = req.query.q;
|
||||
|
||||
let url = `https://invid-api.poketube.fun/api/v1/search/suggestions?q=${query}`;
|
||||
let url = `https://invid-api.poketube.fun/bHj665PpYhUdPWuKPfZuQGoX/api/v1/search/suggestions?q=${query}`;
|
||||
|
||||
let f = await modules.fetch(url, {
|
||||
method: req.method,
|
||||
|
@ -227,7 +227,7 @@ app.use("/sb/i/:v/:imagePath/:img", async function (req, res) {
|
|||
let latestCommitHash;
|
||||
|
||||
const invidious = await modules
|
||||
.fetch("https://invid-api.poketube.fun/api/v1/stats")
|
||||
.fetch("https://invid-api.poketube.fun/bHj665PpYhUdPWuKPfZuQGoX/api/v1/stats")
|
||||
.then((res) => res.text())
|
||||
.then((txt) => getJson(txt));
|
||||
|
||||
|
|
Loading…
Reference in a new issue