Permalink
Browse files

Merge pull request #16 from donnut/master

removed express.createServer()
  • Loading branch information...
2 parents 6c30601 + 95f7fb0 commit 29b0c618c9433d89875e5aad9157a4e9fd7d536c @addyosmani committed Oct 12, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 option1/app.js
  2. +1 −1 option2/app.js
View
@@ -3,7 +3,7 @@ var application_root = __dirname,
path = require("path"),
mongoose = require('mongoose');
-var app = express.createServer();
+var app = express();
// model
mongoose.connect('mongodb://localhost/my_database');
View
@@ -3,7 +3,7 @@ var application_root = __dirname,
path = require("path"),
mongoose = require('mongoose');
-var app = express.createServer();
+var app = express();
// model
mongoose.connect('mongodb://localhost/my_database');

0 comments on commit 29b0c61

Please sign in to comment.