mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			379 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			379 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
"use strict";
 | 
						|
 | 
						|
var express = require("express");
 | 
						|
var app = express();
 | 
						|
 | 
						|
app.use("/", function(req, res) {
 | 
						|
	res.setHeader("Content-Type", "text/html; charset=utf-8");
 | 
						|
	res.end("Hello, World!\n\n💚 🔒.js");
 | 
						|
});
 | 
						|
 | 
						|
// DO NOT DO app.listen() unless we're testing this directly
 | 
						|
if (require.main === module) {
 | 
						|
	app.listen(3000);
 | 
						|
}
 | 
						|
 | 
						|
// Instead do export the app:
 | 
						|
module.exports = app;
 |