mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	add avatars as well
This commit is contained in:
		
							parent
							
								
									87b98e0ad2
								
							
						
					
					
						commit
						e78f0943d0
					
				| @ -48,6 +48,18 @@ module.exports = function (app, config, renderTemplate) { | ||||
|     f.body.pipe(res); | ||||
| 
 | ||||
|   }); | ||||
| 
 | ||||
|       app.get("/avatars/:v", async function (req, res) { | ||||
|     var url = `https://yt3.ggpht.com/${req.params.v}` | ||||
|      | ||||
|        let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { | ||||
|       method: req.method, | ||||
|     }); | ||||
| 
 | ||||
|     f.body.pipe(res); | ||||
| 
 | ||||
|   }); | ||||
|    | ||||
|    | ||||
|   app.get("/api/search", async (req, res) => { | ||||
|     const query = req.query.query; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley