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
4 months agoWillow
4 months agoVenita
4 months agoElvera
5 months agoToshia
5 months agoGlendora
5 months agoRochell
5 months agoBette
5 months agoMattie
6 months agoFrancoise
6 months agoErin
6 months agoAide
6 months agoRodney
6 months agoTerrilyn
6 months agoIsadora
8 months agoDaniel
8 months agoAnnmarie
8 months agoViva
7 months agoEarlean
7 months agoHuey
7 months agoBrandon
9 months agoMitzie
7 months agoDaryl
8 months agoMarylyn
9 months agoMollie
9 months agoAliza
9 months ago