1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 00:14:39 -05:00

update the api url

lighttube.herokuapp.com --> tube.kuylar.dev
This commit is contained in:
Ashley 2022-06-20 11:58:59 +03:00 committed by GitHub
parent 696bed8f51
commit 75e6339fee

View file

@ -77,7 +77,8 @@ app.get("/", function (req, res) {
const things = random_words[Math.floor((Math.random()*random_words.length))];
renderTemplate(res, req, "main.ejs", {
random:things,
});});
});
});
app.get("/channel", async (req, res) => {
const ID = req.query.id;
const { toJson } = require("xml2json");
@ -115,7 +116,7 @@ app.get("/search", async (req, res) => {
const { toJson } = require("xml2json");
const query = req.query.query;
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 j = JSON.parse(toJson(text));