Skip to content

Commit

Permalink
modified web.js to read from index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
prafullam committed Jul 6, 2013
1 parent 371b857 commit 00edad1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
var express = require('express');
var fs = require('fs');

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

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

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

0 comments on commit 00edad1

Please sign in to comment.