code: public static function getUriMethods()
      {
          $root = str_replace($_SERVER['DOCUMENT_ROOT'], '', getcwd());
          $subfolder = trim($root, '/');
  
          return trim(str_replace($subfolder, '', self::getUri()), '/');
      }
docs: Remove subdirectories from URI if they exist.
  
  @return string → method1/method2/method3