DEV Community

Discussion on: Project structure for an Express REST API when there is no "standard way"

Collapse
 
jessachandler profile image
Jess Chandler

Thanks for this great post. I have an API now with fat, bloated controllers, and I'm working to clean them up now. I love how you laid this out - a reminder for why I want to get them cleaned up!

Collapse
 
ccleary00 profile image
Corey Cleary

Glad to hear it was helpful! I used to get "fat controllers" all the time before I started pulling things out into services. And I've seen so many projects with the same issue, so it's a common problem.

Once you get the controllers cleaned up I think one of the biggest benefits is they become much easier to test too.