Fix API path of server version (#195)

This commit is contained in:
sauravhaloi 2019-11-24 16:30:40 +00:00 committed by techknowlogick
parent e4082d89cc
commit b374d7ccc4

View file

@ -9,5 +9,5 @@ func (c *Client) ServerVersion() (string, error) {
var v = struct {
Version string `json:"version"`
}{}
return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v)
return v.Version, c.getParsedResponse("GET", "/version", nil, nil, &v)
}