From b3f57a562d359eb5d0f057afba3321ad78624207 Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 20 Jun 2022 11:58:59 +0300 Subject: [PATCH] update the api url lighttube.herokuapp.com --> tube.kuylar.dev --- server.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 65cbf9a6..889afc14 100644 --- a/server.js +++ b/server.js @@ -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));