DEV Community

Discussion on: Learning Node.js building a simple Express API - Part II

Collapse
 
filipedomingues profile image
Filipe Domingues • Edited

Thanks for the feedback!
Yes you are right, I wrote src\index.js instead of src\app.js.
About parsing on Object destructuring I don't think it's possible but your solution works great. I didn't focus too much on validations for now since I'm going to come back to the routes when I finish the database module. Anyway you are right, you should use '===' whenever you can.