diff --git a/package.json b/package.json index cb3729b..641182e 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,7 @@ "body-parser": "^1.12.2", "cookie-parser": "^1.3.4", "express": "^4.12.3", - "method-override": "^2.3.2", "mongoose": "^4.0.1", - "morgan": "^1.5.2", "node-line-reader": "0.0.2", "ssh2": "^0.4.6", "ursa": "^0.8.4" diff --git a/server.js b/server.js index cca124b..fecad51 100644 --- a/server.js +++ b/server.js @@ -1,14 +1,12 @@ // Modules ==================================================================== var express = require('express'); -var app = express(); var mongoose = require('mongoose'); -var morgan = require('morgan'); var bodyParser = require('body-parser'); -var methodOverride = require('method-override'); var cookieParser = require('cookie-parser'); // Application ================================================================ +var app = express(); var config = require('./config/config.js'); var port = process.env.PORT || config.port; @@ -18,13 +16,9 @@ mongoose.connect(db.url); // Tricks app.use(bodyParser.json()); -app.use(bodyParser.json({ - type: 'application/vnd.api+json' -})); app.use(bodyParser.urlencoded({ extended: true })); -app.use(methodOverride('X-HTTP-Method-Override')); // Cookie-parser app.use(cookieParser()); -- libgit2 0.21.2