2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00
This commit is contained in:
José F. Romaniello 2015-08-31 11:09:22 -03:00
parent 8d6dd198f0
commit d6cd5c2254

View File

@ -9,10 +9,10 @@ var jwt_secret = 'foo bar big secret';
var app = express();
var serveStatic = require('serve-static')
var serveStatic = require('serve-static');
var bodyParser = require('body-parser');
app.use(serveStatic('public', {'index': ['index.html']}))
app.use(serveStatic('public', {'index': ['index.html']}));
app.use(bodyParser.json());
app.post('/login', function (req, res) {