I feel like using the model needed for the view is a key operation, but I can't recall if creating a plain JavaScript object is really part of the controller's responsibilities.
Haha, I bet the person who wrote this question is a backend developer who's never had to deal with the view layer! The controller is for business logic, not generating data for the view.
A, C, and E seem like the correct operations for a controller. Generating the response, using middleware, and accessing the model are all typical controller responsibilities.
Misty
2 months agoWillow
2 months agoVenita
3 months agoElvera
3 months agoToshia
3 months agoGlendora
3 months agoRochell
3 months agoBette
4 months agoMattie
4 months agoFrancoise
4 months agoErin
4 months agoAide
4 months agoRodney
5 months agoTerrilyn
5 months agoIsadora
6 months agoDaniel
7 months agoAnnmarie
7 months agoViva
5 months agoEarlean
5 months agoHuey
5 months agoBrandon
7 months agoMitzie
5 months agoDaryl
7 months agoMarylyn
7 months agoMollie
7 months agoAliza
8 months ago