Permalink
Browse files

update express example for v3.0.x

  • Loading branch information...
jfhbrook committed Nov 18, 2012
1 parent 1bf2e71 commit c789ed4bb16122cc88d6a2d28525205c749cc54b
Showing with 3 additions and 2 deletions.
  1. +3 −2 example/express.js
View
@@ -1,8 +1,9 @@
var express = require('express');
var ecstatic = require('../lib/ecstatic');
+var http = require('http');
-var app = express.createServer();
+var app = express();
app.use(ecstatic(__dirname + '/public', { showdir : true }));
-app.listen(8080);
+http.createServer(app).listen(8080);
console.log('Listening on :8080');

0 comments on commit c789ed4

Please sign in to comment.