인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

darcie's profile image
darcie

asked

NodeJS API Server Built with Test-Driven Development (TDD)

bodyParser module

express 4.x 에서는 body parser를 기본으로 제공하고 있습니다.

Written on

·

169

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!
darcie's profile image
darcie

asked

Ask a question