mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
minor
This commit is contained in:
parent
8d6dd198f0
commit
d6cd5c2254
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user