use the api key

This commit is contained in:
ashley 2024-07-14 11:00:19 +00:00
parent a62433c6f9
commit 798688d105

View file

@ -196,7 +196,7 @@ app.use("/sb/i/:v/:imagePath/:img", async function (req, res) {
app.get("/api/improving-poke/getsugesstions", async (req, res) => { app.get("/api/improving-poke/getsugesstions", async (req, res) => {
const query = req.query.q; 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, { let f = await modules.fetch(url, {
method: req.method, method: req.method,
@ -227,7 +227,7 @@ app.use("/sb/i/:v/:imagePath/:img", async function (req, res) {
let latestCommitHash; let latestCommitHash;
const invidious = await modules 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((res) => res.text())
.then((txt) => getJson(txt)); .then((txt) => getJson(txt));