src/Url.php
public static function getUriMethods()
    {
        $root = str_replace($_SERVER['DOCUMENT_ROOT'], '', getcwd());
        $subfolder = trim($root, '/');

        return trim(str_replace($subfolder, '', self::getUri()), '/');
    }
public static function getUriMethods()
    {
        $root = str_replace($_SERVER['DOCUMENT_ROOT'], '', getcwd());
        $subfolder = trim($root, '/');

        return trim(str_replace($subfolder, '', self::getUri()), '/');
    }
Remove subdirectories from URI if they exist.

@return string → method1/method2/method3