src/Router.php
public function findByUri($uri)
	{
		return $this->routes->first(function ($route) use($uri) {

			return $route->match($uri);
		});
	}
public function findByUri($uri)
	{
		return $this->routes->first(function ($route) use($uri) {

			return $route->match($uri);
		});
	}
public function findByUri ( $ uri ) { return $ this -> routes -> first ( function ( $ route ) use ( $ uri ) { return $ route -> match ( $ uri ) ; } ) ; }
Finds the route via uri

@param string $uri
@return \PHPLegends\Routes\Route | null
Finds the route via uri