mirror of
				https://api.glitch.com/git/presence-button
				synced 2025-10-31 12:45:35 +00:00 
			
		
		
		
	💒🌥 Checkpoint
./server.js:933874/59
This commit is contained in:
		
							parent
							
								
									c372868b13
								
							
						
					
					
						commit
						cbe00e9a9e
					
				| @ -35,7 +35,7 @@ const redirectToHTTPS = (req, res, next) => { | ||||
| app.use("/api", redirectToHTTPS); | ||||
| app.use("/img", redirectToHTTPS); | ||||
| 
 | ||||
| app.get("/", redirectToHTTPS); | ||||
| app.all("/", redirectToHTTPS); // no app.use here because it would match every path
 | ||||
| app.get("/", (req, res) => { | ||||
|   res.sendFile(__dirname + "/views/index.html"); | ||||
| }); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user