fix deprecated body-parser usage
This commit is contained in:
parent
bdd80ca1c4
commit
70f74746bd
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue