Skip to content

Commit

Permalink
Modified web.js to read index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
vdeclerk committed Jul 5, 2013
1 parent 85c7d0c commit e84457a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
var express = require('express');

var app = express.createServer(express.logger());

var fs = require('fs');
app.get('/', function(request, response) {
response.send('Hello World 2!');
var file = fs.readFileSync("index.html");
response.send(file.toString());
});

var port = process.env.PORT || 5000;
Expand Down

0 comments on commit e84457a

Please sign in to comment.