Controllers

Controllers are classes used to help you with handling your route request.
A new controller can be created using a command node ivy make:controller {controllerName} in project root.

node ivy make:controller UserController

will generate a file app/controllers/UserController.js.

Request handlers

Functions defined in the controller can be used to handle your request on the same exact way as Route callback works.
So, we've got UserController previousely created, lets add index route handler there.

Right now, after we hit the route /users we will get the json response containing the values returned from the controller's method index().

Resource

The thing you will, most likely, do very often is performing CRUD (Create, Read, Update, Delete) operations. And, guess what? Ivy can help you with that as well.
Creating CRUD controller is done with --resource option for the commander.

node ivy make:controller UserController --resource

will generate app/controllers/UserController.js containing all the relevant methods for that resource