mirror of
https://github.com/demostf/demoserver.git
synced 2026-06-03 22:04:06 +02:00
Adding semicolons
For better enforcement
This commit is contained in:
parent
0f654be0c7
commit
e460bc4438
1 changed files with 7 additions and 7 deletions
14
index.js
14
index.js
|
|
@ -1,13 +1,13 @@
|
||||||
var express = require('express')
|
var express = require('express');
|
||||||
var app = express();
|
var app = express();
|
||||||
|
|
||||||
app.set('port', (process.env.PORT || 5000))
|
app.set('port', (process.env.PORT || 5000));
|
||||||
app.use(express.static(__dirname + '/public'))
|
app.use(express.static(__dirname + '/public'));
|
||||||
|
|
||||||
app.get('/', function(request, response) {
|
app.get('/', function(request, response) {
|
||||||
response.send('Hello World!')
|
response.send('Hello World!');
|
||||||
})
|
});
|
||||||
|
|
||||||
app.listen(app.get('port'), function() {
|
app.listen(app.get('port'), function() {
|
||||||
console.log("Node app is running at localhost:" + app.get('port'))
|
console.log("Node app is running at localhost:" + app.get('port'));
|
||||||
})
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue