mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	add favicon finally :3
This commit is contained in:
		
							parent
							
								
									c0d3b361e4
								
							
						
					
					
						commit
						a0ff887864
					
				| @ -139,6 +139,10 @@ module.exports = function (app, config, renderTemplate) { | |||||||
| 
 | 
 | ||||||
|   const cssDir = "./css/"; |   const cssDir = "./css/"; | ||||||
| 
 | 
 | ||||||
|  |   app.get("/favicon.ico", function (req, res) { | ||||||
|  |     res.sendFile("favicon.ico", { root: cssDir }); | ||||||
|  |   }); | ||||||
|  | 
 | ||||||
|   app.get("/css/:id", (req, res) => { |   app.get("/css/:id", (req, res) => { | ||||||
|     const filePath = path.join(cssDir, req.params.id); |     const filePath = path.join(cssDir, req.params.id); | ||||||
|     if (!fs.existsSync(filePath)) { |     if (!fs.existsSync(filePath)) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley ////
						Ashley ////