mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
fix fixtures
This commit is contained in:
parent
4fdb4e62f0
commit
8d6dd198f0
@ -26,12 +26,12 @@
|
|||||||
"xtend": "~2.1.2"
|
"xtend": "~2.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"body-parser": "~1.13.3",
|
||||||
"express": "~4.10.6",
|
"express": "~4.10.6",
|
||||||
"body-parser": "^1.10.0",
|
|
||||||
"serve-static": "^1.7.1",
|
|
||||||
"mocha": "~1.17.0",
|
"mocha": "~1.17.0",
|
||||||
"passport-local": "~0.1.6",
|
"passport-local": "~0.1.6",
|
||||||
"request": "~2.19.0",
|
"request": "~2.19.0",
|
||||||
|
"serve-static": "^1.7.1",
|
||||||
"server-destroy": "~1.0.1",
|
"server-destroy": "~1.0.1",
|
||||||
"should": "~1.2.2",
|
"should": "~1.2.2",
|
||||||
"socket.io": "^1.0.4",
|
"socket.io": "^1.0.4",
|
||||||
|
@ -7,6 +7,7 @@ var socketio_jwt = require('../../lib');
|
|||||||
var jwt = require('jsonwebtoken');
|
var jwt = require('jsonwebtoken');
|
||||||
|
|
||||||
var xtend = require('xtend');
|
var xtend = require('xtend');
|
||||||
|
var bodyParser = require('body-parser');
|
||||||
|
|
||||||
var server, sio;
|
var server, sio;
|
||||||
var enableDestroy = require('server-destroy');
|
var enableDestroy = require('server-destroy');
|
||||||
@ -26,10 +27,7 @@ exports.start = function (options, callback) {
|
|||||||
|
|
||||||
var app = express();
|
var app = express();
|
||||||
|
|
||||||
app.configure(function(){
|
app.use(bodyParser.json());
|
||||||
this.use(express.json());
|
|
||||||
this.use(express.urlencoded());
|
|
||||||
});
|
|
||||||
|
|
||||||
app.post('/login', function (req, res) {
|
app.post('/login', function (req, res) {
|
||||||
var profile = {
|
var profile = {
|
||||||
|
@ -7,6 +7,7 @@ var socketio_jwt = require('../../lib');
|
|||||||
var jwt = require('jsonwebtoken');
|
var jwt = require('jsonwebtoken');
|
||||||
|
|
||||||
var xtend = require('xtend');
|
var xtend = require('xtend');
|
||||||
|
var bodyParser = require('body-parser');
|
||||||
|
|
||||||
var server, sio;
|
var server, sio;
|
||||||
var enableDestroy = require('server-destroy');
|
var enableDestroy = require('server-destroy');
|
||||||
@ -26,10 +27,7 @@ exports.start = function (callback) {
|
|||||||
|
|
||||||
var app = express();
|
var app = express();
|
||||||
|
|
||||||
app.configure(function(){
|
app.use(bodyParser.json());
|
||||||
this.use(express.json());
|
|
||||||
this.use(express.urlencoded());
|
|
||||||
});
|
|
||||||
|
|
||||||
app.post('/login', function (req, res) {
|
app.post('/login', function (req, res) {
|
||||||
var profile = {
|
var profile = {
|
||||||
|
Loading…
Reference in New Issue
Block a user