DEV Community

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

Collapse
 
haposan06 profile image
Johannes Haposan Napitupulu

Nice Article! Anw can you give reason which approach is better when using Class? Is it the export new Class or just make every function static? This is for the case Service and Controllers

Collapse
 
pacheco profile image
Thiago Pacheco

Thank you Johannes, actually using static functions would be even better in these cases. I am thinking about changing the post with that.

Thank you for coming up with that! :)