Register routes in your application using your preferred method:
config/routes.php
RoutesDelegator
Both methods will provide access to the application's container via the $container variable.
$container
There are two types of routes that you can create: