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 app = express();
var serveStatic = require('serve-static') var serveStatic = require('serve-static');
var bodyParser = require('body-parser'); var bodyParser = require('body-parser');
app.use(serveStatic('public', {'index': ['index.html']})) app.use(serveStatic('public', {'index': ['index.html']}));
app.use(bodyParser.json()); app.use(bodyParser.json());
app.post('/login', function (req, res) { app.post('/login', function (req, res) {