src/mako/http/routing/Route.php
public function prefix(string $prefix): Route
	{
		if(!empty($prefix))
		{
			$this->prefix .= '/' . trim($prefix, '/');
		}

		return $this;
	}
public function prefix(string $prefix): Route
	{
		if(!empty($prefix))
		{
			$this->prefix .= '/' . trim($prefix, '/');
		}

		return $this;
	}
public function prefix ( string $ prefix ) : Route { if ( ! empty ( $ prefix ) ) { $ this -> prefix .= '/' . trim ( $ prefix , '/' ) ; } return $ this ; }
Adds a prefix to the route.

@param  string                   $prefix Route prefix
@return \mako\http\routing\Route
Adds a prefix to the route .