Skip to content

Commit

Permalink
Updated web.js
Browse files Browse the repository at this point in the history
  • Loading branch information
speedbird21 committed Jul 4, 2013
1 parent 50b03fd commit 56b0dff
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 buf = fs.readFileSync('index.html');
response.send(buf.toString());
});

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

0 comments on commit 56b0dff

Please sign in to comment.