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 |
Tags
- 쿠버네티스
- kubernetes
- node.js
- 명령어
- mysql
- RAID
- MongoDB
- RAPA
- gns3
- express
- OpenStack
- nodejs
- PaaS
- 네트워크
- 도커
- git
- IaaS
- 실습
- dockerfile
- 용어정리
- worker
- docker
- Docker Swarm
- PAT
- Javascript
- 클라우드
- network
- Docker-compose
- 이론
- 개념
Archives
- Today
- Total
목록nodjs (1)
융융이'Blog
Nodejs, express, MongDB를 이용한 CRUD(5)_Controller_comment.js
Comment.js module.exports = { //게시물에 댓글 작성하기 create: async (req, res) => { const { user } = req.body; let comment = new Comment({ content : req.body.content, board : req.params.board_id, user : user, }); result = await comment.save(); return res.json(result); }, //게시판에 해당하는 댓글 모두 불러오기 read: async (req, res) =>{ const result = await Comment.find({board: req.params.board_id}) .populate('user&#..
2022이전/node.js
2020. 1. 12. 20:23