Commit 972f4cfd authored by Leo Iannacone's avatar Leo Iannacone

bodyParser deprecated - updating configuration according with...

bodyParser deprecated - updating configuration according with https://github.com/senchalabs/connect/wiki/Connect-3.0
parent 9ae0b4c5
......@@ -18,7 +18,8 @@ var express = require('express')
app.configure(function(){
app.set('views', __dirname + '/views');
app.set('view engine', 'ejs');
app.use(express.bodyParser());
app.use(express.json());
app.use(express.urlencoded());
app.use(express.methodOverride());
app.use(app.router);
app.use(express.static(__dirname + '/public'));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment