Muhammet-Yildiz / Mern-Blog

Fullstack open source blogging application made with MongoDB, Express, React & Nodejs (MERN)
https://mernblog2022.herokuapp.com/
MIT License
43 stars 9 forks source link

Can't Understand here . Need help. #3

Open jewel109 opened 2 years ago

jewel109 commented 2 years ago

https://github.com/Muhammet-Yildiz/Mern-Blog/blob/ecd0a207e94b5950ff6d708226cdbbe1bbef6f96/Backend/Controllers/story.js#L90

How to post {activeUser} in req.body?

Muhammet-Yildiz commented 2 years ago

When the user enters and likes a story, I send the user's information to the backend. If there is that story among the liked stories, we leave it without liking. If not, we add it to the list.