The routes property contains the routes of the controller.
routes
Map<String, RestRouteHandlerSpec> get routes => UnmodifiableMapView(_routes);