lib/Routing/Route.php
public function setSubdirectory($subdirectory)
    {
        $this->subdirectory = $subdirectory;
        $this->regexPattern = VariableUrl::createRegexMask($subdirectory . $this->pattern);
        return $this;
    }
public function setSubdirectory($subdirectory)
    {
        $this->subdirectory = $subdirectory;
        $this->regexPattern = VariableUrl::createRegexMask($subdirectory . $this->pattern);
        return $this;
    }
public function setSubdirectory ( $ subdirectory ) { $ this -> subdirectory = $ subdirectory ; $ this -> regexPattern = VariableUrl :: createRegexMask ( $ subdirectory . $ this -> pattern ) ; return $ this ; }
Sets the subdirectory prefix for this route.

@param string $subdirectory
@return $this
Sets the subdirectory prefix for this route .