Controllers register routes and actions. For example let’s say you are creating an API for book sales. You may have a route that looks like this: /books/{id}
where the {id} is the book id.
A controller in this instance would associate an Action when this route request is encountered and return details about the book for the given id.