drone-with-nodejs/server.js

12 lines
291 B
JavaScript
Raw Normal View History

2018-06-14 19:27:04 +00:00
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.status(200).send('ok');
});
var server = app.listen(3000, function () {
var port = server.address().port;
console.log('Example app listening at port %s', port);
});
module.exports = server;