Remove version package from API types.
It's an internal type that only extends string. Signed-off-by: David Calavera <david.calavera@gmail.com> Upstream-commit: 9961816adead89622f5d4201a0b5cb33845fa852 Component: engine
This commit is contained in:
@ -37,7 +37,7 @@ func (s *systemRouter) getInfo(ctx context.Context, w http.ResponseWriter, r *ht
|
||||
|
||||
func (s *systemRouter) getVersion(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
|
||||
info := s.backend.SystemVersion()
|
||||
info.APIVersion = api.DefaultVersion
|
||||
info.APIVersion = api.DefaultVersion.String()
|
||||
|
||||
return httputils.WriteJSON(w, http.StatusOK, info)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user