Controller protocol is provided to help you do so. Implement the route(_ app: Application) method and register the controller in your Application.boot.
Any middleware applied during a controller’s route() will not be applied to handlers outside of this controller.

