src/Routing/RouteCollection.php
public function getByAction($action)
    {
        return isset($this->actions[$action]) ? $this->actions[$action] : null;
    }
public function getByAction($action)
    {
        return isset($this->actions[$action]) ? $this->actions[$action] : null;
    }
public function getByAction ( $ action ) { return isset ( $ this -> actions [ $ action ] ) ? $ this -> actions [ $ action ] : null ; }
Get a route by action.

@param string $action

@return \Dingo\Api\Routing\Route|null
Get a route by action .