fix(users): return json from create token [EE-6856] (#11577)

This commit is contained in:
Chaim Lev-Ari
2024-04-25 10:10:42 +03:00
committed by GitHub
parent 505a2d5523
commit 5560a444e5
4 changed files with 153 additions and 5 deletions

View File

@@ -61,8 +61,7 @@ func (handler *Handler) helmInstall(w http.ResponseWriter, r *http.Request) *htt
return httperror.InternalServerError("Unable to install a chart", err)
}
w.WriteHeader(http.StatusCreated)
return response.JSON(w, release)
return response.JSONWithStatus(w, release, http.StatusCreated)
}
func (p *installChartPayload) Validate(_ *http.Request) error {