mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 06:48:33 +01:00
change api url :3
This commit is contained in:
parent
eedbfa5e6d
commit
cf0301c902
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||
const id = req.query.v;
|
||||
const l = req.query.h;
|
||||
|
||||
let url = `https://tube-srv.ashley143.gay/proxy/caption/${id}/${l}/`;
|
||||
let url = `https://inner-api.poketube.fun/proxy/caption/${id}/${l}/`;
|
||||
|
||||
let f = await modules.fetch(url);
|
||||
const body = await f.text();
|
||||
|
@ -135,7 +135,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||
|
||||
app.get("/api/version.json", async (req, res) => {
|
||||
const invidious = await modules
|
||||
.fetch("https://inv-api.poketube.fun/api/v1/stats")
|
||||
.fetch("https://invid-api.poketube.fun/api/v1/stats")
|
||||
.then((res) => res.text())
|
||||
.then((txt) => getJson(txt));
|
||||
|
||||
|
|
Loading…
Reference in a new issue