fix deprecated body-parser usage

This commit is contained in:
Ondrej Synacek 2019-10-24 21:55:05 +02:00
parent bdd80ca1c4
commit 70f74746bd
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ app.set('views', path.join(__dirname, 'views'))
app.use(express.static(path.join(__dirname, 'public')))
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')))
app.use(bodyParser())
app.use(bodyParser.urlencoded({ extended: true }))
if (certEndpoint) {
app.get(`/${certEndpoint}`, (req, res) => {