diff --git a/web.js b/web.js index 4d72e0d018..2200f884b8 100644 --- a/web.js +++ b/web.js @@ -1,9 +1,13 @@ var express = require('express'); - +var fs = require('fs'); var app = express.createServer(express.logger()); +var tpl_file = 'index.html'; + app.get('/', function(request, response) { - response.send('Hello World2!'); + + var tpl = fs.readFileSync(tpl_file).toString(); + response.send(tpl); }); var port = process.env.PORT || 5000;