Sfoglia il codice sorgente

Use urlencoded body-parser

sbkwgh 8 anni fa
parent
commit
c22db98a04
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      server.js

+ 1 - 0
server.js

@@ -8,6 +8,7 @@ let bodyParser = require('body-parser')
 let morgan = require('morgan')
 
 app.use(bodyParser.json())
+app.use(bodyParser.urlencoded({ extended: true }))
 
 if(process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'production') {
 	app.use(morgan('dev'))