src/Http/Endpoint.php
public function set_prefix( $prefix ) {
		if ( ! Str::starts_with( $prefix, '/' ) || Str::ends_with( $prefix, '/' ) ) {
			throw new MalformedRouteException;
		}

		$this->prefix = $prefix;

		return $this;
	}
public function set_prefix( $prefix ) {
		if ( ! Str::starts_with( $prefix, '/' ) || Str::ends_with( $prefix, '/' ) ) {
			throw new MalformedRouteException;
		}

		$this->prefix = $prefix;

		return $this;
	}
public function set_prefix ( $ prefix ) { if ( ! Str :: starts_with ( $ prefix , '/' ) || Str :: ends_with ( $ prefix , '/' ) ) { throw new MalformedRouteException ; } $ this -> prefix = $ prefix ; return $ this ; }
Sets the endpoint's prefix.

@param string $prefix

@return $this
@throws MalformedRouteException
Sets the endpoint s prefix .