1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00

Refactored node todo sample

This commit is contained in:
Jovan Popovic
2017-03-11 23:46:35 +01:00
parent a5139e0b59
commit 555b9eda29
6 changed files with 66 additions and 55 deletions

View File

@ -11,5 +11,10 @@ app.use(function (req, res, next) {
err.status = 404;
next(err);
});
app.set('port', process.env.PORT || 3000);
var server = app.listen(app.get('port'), function() {
console.log('Express server listening on port ' + server.address().port);
});
module.exports = app;