mirror of
https://github.com/demostf/demoserver.git
synced 2026-06-03 13:54:12 +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();
|
||||
|
||||
app.set('port', (process.env.PORT || 5000))
|
||||
app.use(express.static(__dirname + '/public'))
|
||||
app.set('port', (process.env.PORT || 5000));
|
||||
app.use(express.static(__dirname + '/public'));
|
||||
|
||||
app.get('/', function(request, response) {
|
||||
response.send('Hello World!')
|
||||
})
|
||||
response.send('Hello World!');
|
||||
});
|
||||
|
||||
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