Skip to content

Commit

Permalink
Add index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jul 6, 2013
1 parent 675c411 commit d01e0e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
var index = 'index.html';
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 buffer = fs.readFileSync(index);
response.send(buffer.toString('utf-8'));
});

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

0 comments on commit d01e0e6

Please sign in to comment.