DEV Community

Discussion on: Designing a better architecture for a Node.js API

Collapse
 
bencodegeek profile image
Ben Coleman • Edited

Nice post
However your get() method in the Controller class refers to a method on the service instance also called get() which doesn't exist. Service class has getAll, insert, update and delete methods but not get

Collapse
 
pacheco profile image
Thiago Pacheco

Thank you for seeing that Ben, I was trying to reduce the functions because the post does was very long but I've forgotten to remove this one too.
I've updated the post now.