Merge branch 'master' of https://github.com/wonderdogone/socketio-jwt into wonderdogone-master
This commit is contained in:
commit
4fdb4e62f0
@ -9,10 +9,11 @@ var jwt_secret = 'foo bar big secret';
|
|||||||
|
|
||||||
var app = express();
|
var app = express();
|
||||||
|
|
||||||
app.configure(function(){
|
var serveStatic = require('serve-static')
|
||||||
this.use(express.json());
|
var bodyParser = require('body-parser');
|
||||||
this.use(express.static(__dirname + '/public'));
|
|
||||||
});
|
app.use(serveStatic('public', {'index': ['index.html']}))
|
||||||
|
app.use(bodyParser.json());
|
||||||
|
|
||||||
app.post('/login', function (req, res) {
|
app.post('/login', function (req, res) {
|
||||||
var profile = {
|
var profile = {
|
||||||
|
@ -26,8 +26,9 @@
|
|||||||
"xtend": "~2.1.2"
|
"xtend": "~2.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"connect": "~2.7.11",
|
"express": "~4.10.6",
|
||||||
"express": "~3.1.2",
|
"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",
|
||||||
|
Reference in New Issue
Block a user