Skip to content

Commit

Permalink
Base path and url
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Jan 14, 2016
1 parent fb190b9 commit e0097a8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/ApiEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ public function setBasePath($basePath)
return $this;
}

/**
* @return string
*/
public function getBaseUrl()
{
return $this->_baseUrl;
}

/**
* @return string
*/
public function getBasePath()
{
return $this->_basePath;
}

protected function _buildUrl($path)
{
return Path::buildUnix($this->_baseUrl, $this->_basePath, $path);
Expand Down

0 comments on commit e0097a8

Please sign in to comment.