Skip to content

Commit

Permalink
cloudapi: add client method to return baseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
yorugac authored and mstoykov committed Jun 6, 2023
1 parent 8f6f73b commit 3ab0085
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloudapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ func NewClient(logger logrus.FieldLogger, token, host, version string, timeout t
return c
}

// BaseURL returns configured host.
func (c *Client) BaseURL() string {
return c.baseURL
}

// NewRequest creates new HTTP request.
//
// This is the same as http.NewRequest, except that data if not nil
Expand Down

0 comments on commit 3ab0085

Please sign in to comment.