Browse Source

Update app.js to use extended URL encoding in the Express middleware

node16
Onja 1 year ago
parent
commit
486950b6df
  1. 2
      src/app.js

2
src/app.js

@ -22,7 +22,7 @@ app.set('views', path.join(__dirname, 'views'));
app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(express.urlencoded({ extended: true }));
app.use(cookieParser());
app.use(express.static(path.join(basedir, 'public')));

Loading…
Cancel
Save