src/Router.php
public static function getMethod($route)
    {
        $route = Url::addBackSlash($route);

        return isset(self::$routes[$route]) ? self::$routes[$route] : null;
    }
public static function getMethod($route)
    {
        $route = Url::addBackSlash($route);

        return isset(self::$routes[$route]) ? self::$routes[$route] : null;
    }
Get method to call from URI.

@param string $route

@uses \string Url::addBackSlash → add backslash if it doesn't exist

@return string|null → route or null