프론트에서 node.js로 요청 데이터를 보낼 때, url이 아닌 request body에 들어 있는 경우, req.body를 통해서 해당 응답 데이터를 참조하기는 어렵다. 이 때, 이 부분을 쉽게 해결해주는 미들웨어가 express.json, express.urlencoded이다. express.json() → 'Content-Type': 'application./json' 을 해석 express.urlencoded() → 'Content-Type': 'application/x-www-form-urlencoded'을 해석 const express = require('express'); const app = express(); /* 아래 두 줄을 추가해준다. */ app.use(express.json()..