Merge pull request #56 from Dahlgren/bugfix/express-bodyparser-deprecated

Set bodyparser urlencoded to use simplified parsing
This commit is contained in:
Björn Dahlgren 2017-04-01 13:20:27 +02:00 committed by GitHub
commit a841ad5027

2
app.js
View File

@ -25,7 +25,7 @@ if (config.auth && config.auth.username && config.auth.password) {
}
app.use(bodyParser.json());
app.use(bodyParser.urlencoded());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(morgan('dev'));
app.use(serveStatic(path.join(__dirname, 'public')));