Permalink
Browse files

express.createServer() replaced

express.createServer() is depreciated
  • Loading branch information...
1 parent 243ae38 commit 95f7fb0b9fb7d599855255b21617dc0a417dcfaf Erwin Poeze committed Oct 12, 2012
Showing with 1 addition and 1 deletion.
  1. +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');

0 comments on commit 95f7fb0

Please sign in to comment.