diff --git a/package.json b/package.json index 3e8b184..d802fd6 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "express": "^4.13.4", "mocha": "^2.4.5", "mongodb": "^2.1.16", - "morgan": "^1.7.0" + "morgan": "^1.7.0", + "object-assign":"4.1.0" }, "engine": { "node": "*", diff --git a/server.js b/server.js index 531d790..36dc199 100644 --- a/server.js +++ b/server.js @@ -4,6 +4,8 @@ var express = require('express'), app = express(), eps = require('ejs'), morgan = require('morgan'); + +Object.assign=require('object-assign') app.engine('html', require('ejs').renderFile); app.use(morgan('combined'))