#35 API: Handling POST Request | Working with Express JS | A Complete NODE JS Course

preview_player
Показать описание
In this lecture we are going to implement a route handler for handling POST request which will create a new movie object on the server.
Рекомендации по теме
Комментарии
Автор

req.body is undefined only the id is added whit 201 status m using express "^4.18.2"
great explanation by the way thank u so much!

Dext-err
Автор

Undoubtedly, your content is great!
Can you help where can I get resources for further practice and learning thought it seems obvious to someone but there lot of resources in the internet:
How to find great resource and keep upskilling ownself:
I'm looking forward for your kind
Reply 🖤

Kiran-khadka
Автор

I'm only getting curly braces {} with nothing in them, despite the countless times I have reviewed my code.
what could be the issue here?

DecoyCheats
Автор

Why not use spread operator to create a new object ? const newMovie = {id:newId, ...reg.body}

igorr