You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a method to handle parsing the body of a request. This can either be via middleware (like Express) or built-in, such as a check against the header content-type. I prefer the latter, so that parsing does not need to be something the developer thinks about.
router.post("/",(req,{ body })=>{// Do something with the body}
The text was updated successfully, but these errors were encountered:
Add a method to handle parsing the body of a request. This can either be via middleware (like Express) or built-in, such as a check against the header
content-type
. I prefer the latter, so that parsing does not need to be something the developer thinks about.The text was updated successfully, but these errors were encountered: