Hi Shreyas, I enjoyed the article. It was simple and to the point.
For the get request I think it would be better to use .json so that the response renders as JSON, like this:
res.status(200).json(products)
Thanks for sharingβ¦ I didnβt know this!!
you're welcome! Will you update the article?
It's shown here in the docs: expressjs.com/en/api.html#res.json
Yup I'll surely add this in it
Cool :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Shreyas, I enjoyed the article. It was simple and to the point.
For the get request I think it would be better to use .json so that the response renders as JSON, like this:
res.status(200).json(products)
Thanks for sharingβ¦ I didnβt know this!!
you're welcome! Will you update the article?
It's shown here in the docs: expressjs.com/en/api.html#res.json
Yup I'll surely add this in it
Cool :)