The controller is generally responsible for performing a request action.

Creating a Controller

You can simply create a controller by using the Legato inbuilt
command line tool or simply create a new file inside the controllers'
folder which is inside the app folder. If you use the command line
tool then everything will be set up for automatically.

Using the command line tool

To create a controller with the command line tool, first,
open your terminal or command prompt for windows users then change
directory to the root of your legato project