mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	update the api url
lighttube.herokuapp.com --> tube.kuylar.dev
This commit is contained in:
		
							parent
							
								
									0a23218c45
								
							
						
					
					
						commit
						b3f57a562d
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley