fleetctl preview to use v1 setup path, to support previous versions of fleet (#5331)
This commit is contained in:
@@ -23,9 +23,9 @@ func (c *Client) Setup(email, name, password, org string) (string, error) {
|
||||
ServerURL: &c.addr,
|
||||
}
|
||||
|
||||
response, err := c.Do("POST", "/api/setup", "", params)
|
||||
response, err := c.Do("POST", "/api/v1/setup", "", params)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("POST /api/setup: %w", err)
|
||||
return "", fmt.Errorf("POST /api/v1/setup: %w", err)
|
||||
}
|
||||
defer response.Body.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user