Compact middleware statements
This commit is contained in:
parent
ac6d8614dc
commit
bbd2f34417
@ -8,11 +8,9 @@ var fs = require('fs');
|
|||||||
|
|
||||||
var app = express();
|
var app = express();
|
||||||
|
|
||||||
// Set root as current dir
|
app.use(express.static("./")); // Set root as current dir
|
||||||
app.use(express.static("./"));
|
app.use(express.json()); // Use JSON handler when parsing requests
|
||||||
|
|
||||||
// Use JSON handler when parsing requests
|
|
||||||
app.use(express.json());
|
|
||||||
|
|
||||||
http.createServer(app).listen(8000);
|
http.createServer(app).listen(8000);
|
||||||
// https.createServer(options, app).listen(443);
|
// https.createServer(options, app).listen(443);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user