diff --git a/apps/cli/internal/api/client.go b/apps/cli/internal/api/client.go index 2a3f8f4..43e4ed5 100644 --- a/apps/cli/internal/api/client.go +++ b/apps/cli/internal/api/client.go @@ -32,6 +32,11 @@ func NewClient(cfg *types.CLIConfig) *Client { } } +// BaseURL returns the configured API endpoint (useful for UI display). +func (c *Client) BaseURL() string { + return c.baseURL +} + // doGetJSON performs a GET request and decodes JSON into out func (c *Client) doGetJSON(path string, out any) error { req, err := http.NewRequest("GET", c.baseURL+path, nil)