Migrate client setup api call used by fleetctl to use versionless path (#5266)

This commit is contained in:
Martin Angers 2022-04-20 16:30:43 -04:00 committed by GitHub
parent bfef6cf368
commit 26cfa9e358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,9 +23,9 @@ func (c *Client) Setup(email, name, password, org string) (string, error) {
ServerURL: &c.addr,
}
response, err := c.Do("POST", "/api/v1/setup", "", params)
response, err := c.Do("POST", "/api/setup", "", params)
if err != nil {
return "", fmt.Errorf("POST /api/v1/setup: %w", err)
return "", fmt.Errorf("POST /api/setup: %w", err)
}
defer response.Body.Close()