Skip to content

Commit

Permalink
fs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jul 11, 2013
1 parent 12d7d59 commit 7b0116a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web.js
@@ -1,8 +1,10 @@
var express = require('express'); var express = require('express');
var fs = require('fs');


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


app.get('/', function(request, response) { app.get('/', function(request, response) {

var buf = fs.readFileSync("index.html"); var buf = fs.readFileSync("index.html");


response.send(buf); response.send(buf);
Expand Down

0 comments on commit 7b0116a

Please sign in to comment.