Update to express 4.x

This commit is contained in:
lmb 2014-10-18 13:30:45 +01:00
parent be66a1b346
commit 33c4f0b01b
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
var util = require('./util');
var express = require('express');
var bodyParser = require('body-parser');
var WebSocketServer = require('ws').Server;
var url = require('url');
@ -133,7 +134,8 @@ app._checkKey = function(key, ip, cb) {
app._initializeHTTP = function() {
var self = this;
this.use(express.bodyParser({ mapParams: false }));
this.use(bodyParser.urlencoded({extended: true}));
this.use(bodyParser.json());
this.use(util.allowCrossDomain);
// Retrieve guaranteed random ID.

View File

@ -13,7 +13,8 @@
"author": "Michelle Bu, Eric Zhang",
"license": "MIT",
"dependencies": {
"express": "~3.5.1",
"body-parser": "^1.9.0",
"express": "^4.9.8",
"optimist": "~0.6.1",
"utils-merge": "~1.0.0",
"ws": "~0.4.25"