summaryrefslogtreecommitdiff
path: root/netcon/httpserver.js
blob: 5c2c0116da1c057ce63b29d6483eaeded84c3a1e (plain)
1
2
3
4
5
6
7
var http = require('http');
var server = http.createServer(function (request, response) {
  response.writeHead(200, {"Content-Type": "text/plain"});
  response.end("\n\nWelcome to the machine!\n\n");
});
server.listen(80);
console.log("Server running!");