2
1
mirror of https://github.com/s00500/nodeMessageBoard.git synced 2025-07-12 14:01:01 +00:00

First poc

This commit is contained in:
2016-03-07 21:48:50 +01:00
parent 67d82d49b2
commit e1d0eac6a5
3 changed files with 36 additions and 97 deletions

View File

@ -8,7 +8,7 @@ server = require('./server');
function sendInterface(response) {
console.log("Request handler 'interface' was called.");
response.writeHead(200, {"Content-Type": "text/html"});
var html = fs.readFileSync(__dirname + "board.html")
var html = fs.readFileSync(__dirname + "/board.html")
response.end(html);
}