Controllers

Business logic coordination between routes and services.

Controllers should:

  • Handle business logic and orchestration between services
  • Handle environment variables and configuration
  • Coordinate multiple service calls
  • Implement business rules and validation
  • Handle service business logic layer (result.success)