mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 23:09:08 +01:00
update the api url
lighttube.herokuapp.com --> tube.kuylar.dev
This commit is contained in:
parent
0a23218c45
commit
b3f57a562d
1 changed files with 3 additions and 2 deletions
|
@ -77,7 +77,8 @@ app.get("/", function (req, res) {
|
||||||
const things = random_words[Math.floor((Math.random()*random_words.length))];
|
const things = random_words[Math.floor((Math.random()*random_words.length))];
|
||||||
renderTemplate(res, req, "main.ejs", {
|
renderTemplate(res, req, "main.ejs", {
|
||||||
random:things,
|
random:things,
|
||||||
});});
|
});
|
||||||
|
});
|
||||||
app.get("/channel", async (req, res) => {
|
app.get("/channel", async (req, res) => {
|
||||||
const ID = req.query.id;
|
const ID = req.query.id;
|
||||||
const { toJson } = require("xml2json");
|
const { toJson } = require("xml2json");
|
||||||
|
@ -115,7 +116,7 @@ app.get("/search", async (req, res) => {
|
||||||
const { toJson } = require("xml2json");
|
const { toJson } = require("xml2json");
|
||||||
const query = req.query.query;
|
const query = req.query.query;
|
||||||
const search = await fetch(
|
const search = await fetch(
|
||||||
`https://lighttube.herokuapp.com/api/search?query=${query}`
|
`https://tube.kuylar.dev/api/search?query=${query}`
|
||||||
);
|
);
|
||||||
const text = await search.text();
|
const text = await search.text();
|
||||||
const j = JSON.parse(toJson(text));
|
const j = JSON.parse(toJson(text));
|
||||||
|
|
Loading…
Reference in a new issue