Merge branch 'wonderdogone-master'
This commit is contained in:
commit
51bfe18d72
@ -9,10 +9,11 @@ var jwt_secret = 'foo bar big secret';
|
||||
|
||||
var app = express();
|
||||
|
||||
app.configure(function(){
|
||||
this.use(express.json());
|
||||
this.use(express.static(__dirname + '/public'));
|
||||
});
|
||||
var serveStatic = require('serve-static');
|
||||
var bodyParser = require('body-parser');
|
||||
|
||||
app.use(serveStatic('public', {'index': ['index.html']}));
|
||||
app.use(bodyParser.json());
|
||||
|
||||
app.post('/login', function (req, res) {
|
||||
var profile = {
|
||||
|
@ -26,11 +26,12 @@
|
||||
"xtend": "~2.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"connect": "~2.7.11",
|
||||
"express": "~3.1.2",
|
||||
"body-parser": "~1.13.3",
|
||||
"express": "~4.10.6",
|
||||
"mocha": "~1.17.0",
|
||||
"passport-local": "~0.1.6",
|
||||
"request": "~2.19.0",
|
||||
"serve-static": "^1.7.1",
|
||||
"server-destroy": "~1.0.1",
|
||||
"should": "~1.2.2",
|
||||
"socket.io": "^1.0.4",
|
||||
|
@ -7,6 +7,7 @@ var socketio_jwt = require('../../lib');
|
||||
var jwt = require('jsonwebtoken');
|
||||
|
||||
var xtend = require('xtend');
|
||||
var bodyParser = require('body-parser');
|
||||
|
||||
var server, sio;
|
||||
var enableDestroy = require('server-destroy');
|
||||
@ -26,10 +27,7 @@ exports.start = function (options, callback) {
|
||||
|
||||
var app = express();
|
||||
|
||||
app.configure(function(){
|
||||
this.use(express.json());
|
||||
this.use(express.urlencoded());
|
||||
});
|
||||
app.use(bodyParser.json());
|
||||
|
||||
app.post('/login', function (req, res) {
|
||||
var profile = {
|
||||
|
@ -7,6 +7,7 @@ var socketio_jwt = require('../../lib');
|
||||
var jwt = require('jsonwebtoken');
|
||||
|
||||
var xtend = require('xtend');
|
||||
var bodyParser = require('body-parser');
|
||||
|
||||
var server, sio;
|
||||
var enableDestroy = require('server-destroy');
|
||||
@ -26,10 +27,7 @@ exports.start = function (callback) {
|
||||
|
||||
var app = express();
|
||||
|
||||
app.configure(function(){
|
||||
this.use(express.json());
|
||||
this.use(express.urlencoded());
|
||||
});
|
||||
app.use(bodyParser.json());
|
||||
|
||||
app.post('/login', function (req, res) {
|
||||
var profile = {
|
||||
|
Reference in New Issue
Block a user