mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 03:17:47 +01:00
change api url :3
This commit is contained in:
parent
75fa540a94
commit
2a40e78a2d
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 id = req.query.v;
|
||||||
const l = req.query.h;
|
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);
|
let f = await modules.fetch(url);
|
||||||
const body = await f.text();
|
const body = await f.text();
|
||||||
|
@ -135,7 +135,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
|
|
||||||
app.get("/api/version.json", async (req, res) => {
|
app.get("/api/version.json", async (req, res) => {
|
||||||
const invidious = await modules
|
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((res) => res.text())
|
||||||
.then((txt) => getJson(txt));
|
.then((txt) => getJson(txt));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue