Skip to content

Commit

Permalink
Updated web.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rruizriol committed Jul 11, 2013
1 parent b9673ef commit adda0ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ var express = require('express');
var app = express.createServer(express.logger());

var readContent = function(file) {
var fs = require(’fs’);
var fs = require('fs');
return fs.readFileSync(file).toString();

};

app.get('/', function(request, response) {
response.send(readContent('index.html'));
response.send(readContent('./index.html'));
});

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

0 comments on commit adda0ad

Please sign in to comment.