3 ms·
The reason is that the code in controllers tend to be view specific in practice, to the extent of projecting view specific models. If you wanted to expose your
by neeleshs 13y ago
The reason is that the code in controllers tend to be view specific in practice, to the extent of projecting view specific models. If you wanted to expose your business logic as APIs, you are better off either writing controllers view agnostic, or pushing down the business logic to something else.