Getting current route rule in controller.