Provide extended option to urlencoded middleware
This commit is contained in:
parent
6026037aa8
commit
98566811c3
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "wms-core",
|
||||
"version": "0.7.1",
|
||||
"version": "0.7.2",
|
||||
"description": "Node web framework",
|
||||
"repository": "git@gitlab.com:ArisuOngaku/wms-core.git",
|
||||
"author": "Alice Gaudon <alice@gaudon.pro>",
|
||||
|
@ -18,7 +18,9 @@ export default class ExpressAppComponent extends ApplicationComponent<void> {
|
||||
});
|
||||
|
||||
router.use(express.json());
|
||||
router.use(express.urlencoded());
|
||||
router.use(express.urlencoded({
|
||||
extended: true,
|
||||
}));
|
||||
|
||||
router.use((req, res, next) => {
|
||||
req.models = {};
|
||||
|
Loading…
Reference in New Issue
Block a user