Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #16 from donnut/master

removed express.createServer()
  • Loading branch information...
commit 29b0c618c9433d89875e5aad9157a4e9fd7d536c 2 parents 6c30601 + 95f7fb0
@addyosmani authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  option1/app.js
  2. +1 −1  option2/app.js
View
2  option1/app.js
@@ -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
2  option2/app.js
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.