refactor controllers in control package inside rpc
simevo opened this issue · comments
simevo commented
according to separation of concerns best practice, the controllers in control package inside rpc are too messy and probably wrongly named
InvoiceController handles stuff which is not specific to invoices
they should be reassigned differently, for example based on the actors:
- BaseController (goes to Base, for non-actor-specific endpoints)
- TdController (goes to.../td000000x/... routes)
- SdiController (goes to Exchange and handles /sdi/... routes)
another option is to create helper classes