mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Merge pull request #56 from Dahlgren/bugfix/express-bodyparser-deprecated
Set bodyparser urlencoded to use simplified parsing
This commit is contained in:
commit
a841ad5027
2
app.js
2
app.js
@ -25,7 +25,7 @@ if (config.auth && config.auth.username && config.auth.password) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
app.use(bodyParser.urlencoded());
|
app.use(bodyParser.urlencoded({ extended: false }));
|
||||||
app.use(morgan('dev'));
|
app.use(morgan('dev'));
|
||||||
app.use(serveStatic(path.join(__dirname, 'public')));
|
app.use(serveStatic(path.join(__dirname, 'public')));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user