Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 |
30 | 31 |
Tags
- 한글깨짐
- 반복문
- 안드로이드 빌드 안됨
- marquee
- While문
- Linux
- 아오
- Linked List
- gitbash
- for문
- 인텔리제이
- CentOS7
- 잠시만조용히
- GIT
- MUI
- 운영체제
- 인공지능
- CentOS
- rufus
- 로그
- AI
- 핫모듈
- 연결리스트
- 백틱
- 깃
- 안드로이드 빌드 안될때
- 부팅디스크
- 자바
- Vue
- Intellij
Archives
- Today
- Total
새끼 개발자의 Life is egg
[Node.js] express post 데이터 받기 본문
app.post('/', async (req, res) => {
console.log(req.body);
res.end();
});
req.body 로 데이터를 받을 수 있다던데
자꾸 undefined가 찍혔다
body-parser 라는 미들웨어를 사용해야 한단다.
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
'개발's egg > Javascript' 카테고리의 다른 글
[Node.js] Multer는 저장할 때 확장자를 찢어... (0) | 2023.09.08 |
---|---|
[Node.js] Node 크롬 개발자 도구에서 로그 확인하기 (0) | 2023.09.07 |
[Node.js] Module ~ needs an import assertion of type "json" (0) | 2023.09.07 |
리액트 포트 다른걸로 바꾸기 (0) | 2023.09.01 |
React Native NetInfo Error (0) | 2023.07.13 |
Comments