개발/Node.js
Express - res.json vs res.send
개발자 솜
2021. 7. 21. 17:08
res.json은 내부적으로 res.send를 호출하고 있으므로
Json 데이터를 보낼때는 -> res.json 사용 (json 데이터를 보낸다는 의도가 더 명확하게 드러나기도 함)
Reference : https://haeguri.github.io/2018/12/30/compare-response-json-send-func/