1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 09:34:41 -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 0a23218c45
commit b3f57a562d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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));