Skip to content

Commit

Permalink
Changing the order of bodyparser.
Browse files Browse the repository at this point in the history
  • Loading branch information
ipiyer committed Oct 20, 2012
1 parent d6fe236 commit 5bf0e51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.js
Expand Up @@ -8,6 +8,8 @@ var app = module.exports = express();

app.configure(function(){
app.set('port', process.env.PORT || 3000);
app.use(express.bodyParser());
app.use(express.methodOverride());
app.set('view engine', 'jade');
app.set("views", path.join(PROJDIR, "templates"));
app.use(express.favicon());
Expand All @@ -17,8 +19,6 @@ app.configure(function(){
app.get(/\/js/, express.static(path.join(static,'js')));
app.get(/\/css/, express.static(path.join(static,'css')));
app.get(/\/images/, express.static(path.join(static,'images')));
app.use(express.bodyParser());
app.use(express.methodOverride());
});

app.configure('development', function(){
Expand Down
2 changes: 1 addition & 1 deletion hello/urls.js
@@ -1,4 +1,4 @@
var views = require('./views.js')
var views = require('./views.js');

module.exports = function(app){
app.get(/\/hello/ , views.hello);
Expand Down

0 comments on commit 5bf0e51

Please sign in to comment.