250x250
Notice
Recent Posts
Recent Comments
- Today
- Total
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- mongoose
- flutter
- single quote
- AWS
- wil
- clipBehavior
- sequelize
- css
- nginx
- certbot
- moment
- TailwindCSS
- await
- jsonwebtoken
- Node.js
- RDS
- MYSQL
- Express
- TypeScript
- Find
- mongodb
- atlas
- EC2
- async
- findByIdAndDelete
- double quote
- JavaScript
- til
- Nodejs
- https
Link
Archives
반응형
목록req.body (1)
기억 휘발 방지소
[Node.js] req.body, req.params, req.query에 대하여 with Express, Axios
📌 req.body JSON과 같은 데이터를 받을 때 사용한다. // axios로 요청보내기 await axios.({ url: "http://localhost:4000", method: "POST", data: { title: "hello", content: "hello world", }, }); 서버에서 받을 때에는 아래 설정을 해줘야한다. const express = require("express"); const bodyParser = require("body-parser"); const app = express(); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); +) express 4.16.0버전 이후..
Web/Node.js
2021. 10. 30. 16:56
반응형