Which one this controller structure for user api make sense
Separate controller for UI and API for every api version
/app/controllers/UsersController.php
/app/controllers/api/v1/ApiUsersController.php
or
Separate controller for UI and API and handle versioning in code
/app/controllers/UsersController.php
/app/controllers/api/ApiUsersController.php
or
Use single controller, detect /api/ call within router. Return html/json depending on the url.
/app/controllers/UsersController.php