mirror of
				https://github.com/Lomanic/presence-button-web
				synced 2025-11-04 05:05:37 +00:00 
			
		
		
		
	📍🍮 Checkpoint
./server.js:933874/240
This commit is contained in:
		
							parent
							
								
									41f09e9473
								
							
						
					
					
						commit
						757e56c9e3
					
				@ -32,10 +32,10 @@ const redirectToHTTPS = (req, res, next) => {
 | 
				
			|||||||
    res.redirect("https://" + req.headers.host + req.url);
 | 
					    res.redirect("https://" + req.headers.host + req.url);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
app.use("/", redirectToHTTPS);
 | 
					 | 
				
			||||||
app.use("/api", redirectToHTTPS);
 | 
					app.use("/api", redirectToHTTPS);
 | 
				
			||||||
app.use("/img", redirectToHTTPS);
 | 
					app.use("/img", redirectToHTTPS);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					app.get("/", redirectToHTTPS);
 | 
				
			||||||
app.get("/", (req, res) => {
 | 
					app.get("/", (req, res) => {
 | 
				
			||||||
  res.sendFile(__dirname + "/views/index.html");
 | 
					  res.sendFile(__dirname + "/views/index.html");
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user