Open mossa-Sammer opened 2 years ago
https://github.com/muisawe/simple-social-media/blob/969b567840d11cc3040e997fbd53e19553b26cdf/controllers/comment.js#L13-L16
you can use destructuring
const { userId } = req; const { postId, content } = req.body;
nice note 😃
https://github.com/muisawe/simple-social-media/blob/969b567840d11cc3040e997fbd53e19553b26cdf/controllers/comment.js#L13-L16
you can use destructuring