| 
									
										
										
										
											2019-06-03 03:47:07 -06:00
										 |  |  | "use strict"; | 
					
						
							| 
									
										
										
										
											2018-07-03 03:25:12 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-03 03:47:07 -06:00
										 |  |  | var express = require("express"); | 
					
						
							| 
									
										
										
										
											2018-07-03 03:25:12 -06:00
										 |  |  | var app = express(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-03 03:47:07 -06:00
										 |  |  | app.use("/", function(req, res) { | 
					
						
							| 
									
										
										
										
											2019-11-01 15:14:07 -06:00
										 |  |  |     res.setHeader("Content-Type", "text/html; charset=utf-8"); | 
					
						
							|  |  |  |     res.end("Hello, World!\n\n💚 🔒.js"); | 
					
						
							| 
									
										
										
										
											2018-07-03 03:25:12 -06:00
										 |  |  | }); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // DO NOT DO app.listen() unless we're testing this directly
 | 
					
						
							| 
									
										
										
										
											2019-06-03 03:47:07 -06:00
										 |  |  | if (require.main === module) { | 
					
						
							| 
									
										
										
										
											2019-11-01 15:14:07 -06:00
										 |  |  |     app.listen(3000); | 
					
						
							| 
									
										
										
										
											2019-06-03 03:47:07 -06:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2018-07-03 03:25:12 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Instead do export the app:
 | 
					
						
							|  |  |  | module.exports = app; |