Inflearn Community Q&A
express 4.x 에서는 body parser를 기본으로 제공하고 있습니다.
Written on
·
179
7
http://expressjs.com/ko/4x/api.html#req.body
express모듈이 require로 불러와져 있다면 미들웨어는 아래와같이 가져오시면 됩니다.
app.use(express.json()) // for parsing application/json
app.use(express.urlencoded({ extended: true })) // for parsing application/x-www-form-urlencoded
rest-apitddexpressnodejs
Answer
This question is waiting for answers
Be the first to answer!





