Refactor one controller so that it only handles HTTP requests/responses, while all business logic and database operations are moved to a dedicated service. This will serve as the template for other refactors.
controllers/
exampleController.js --> HTTP only
services/
exampleService.js --> Business logic + DB
Refactor one controller so that it only handles HTTP requests/responses, while all business logic and database operations are moved to a dedicated service. This will serve as the template for other refactors.
controllers/
exampleController.js --> HTTP only
services/
exampleService.js --> Business logic + DB