Add comment dividers
This commit is contained in:
parent
bbd2f34417
commit
b4310842c0
@ -5,16 +5,20 @@ var http = require('http');
|
||||
var path = require('path');
|
||||
var fs = require('fs');
|
||||
|
||||
// Set up Express //////////////////////////////////////////////////////////////
|
||||
|
||||
var app = express();
|
||||
|
||||
app.use(express.static("./")); // Set root as current dir
|
||||
app.use(express.json()); // Use JSON handler when parsing requests
|
||||
|
||||
// Set up server and start listening ///////////////////////////////////////////
|
||||
|
||||
http.createServer(app).listen(8000);
|
||||
// https.createServer(options, app).listen(443);
|
||||
|
||||
// Add routes //////////////////////////////////////////////////////////////////
|
||||
|
||||
// Get root
|
||||
app.get('/', function(rq, rs)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user