diff --git a/lib/api.js b/lib/api.js index 255b80a..f7f161b 100644 --- a/lib/api.js +++ b/lib/api.js @@ -10,7 +10,8 @@ var fs = require('fs'); -var express = require('express'); +var express = require('express'), + bodyParser = require('body-parser'); var Logger = require('./logger'); @@ -54,8 +55,7 @@ var API = module.exports = function API(opts) { } this.server.set('title', 'Cylon API Server'); - this.server.use(express.json()); - this.server.use(express.urlencoded()); + this.server.use(bodyParser()); this.server.use(express["static"](__dirname + "/../node_modules/robeaux/")); }; diff --git a/package.json b/package.json index ef23155..7eb03ac 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,9 @@ }, "dependencies": { - "async": "0.7.0", - "express": "3.5.1", - "robeaux": ">= 0.1.0" + "async": "0.7.0", + "express": "4.4.1", + "body-parser": "1.3.0", + "robeaux": ">= 0.1.0" } }