Generated the controller