Commit 0887a2a0 authored by Huaqiao's avatar Huaqiao Committed by badboy-huaqiao
Browse files

fix: GUI backend server can not update app configurable

Signed-off-by: default avatarHuaqiao <huaqiaoz@vmware.com>
parent 9bd3696a
Showing with 6 additions and 0 deletions
+6 -0
......@@ -38,6 +38,12 @@ func DeployConfigurable(w http.ResponseWriter, r *http.Request) {
var err error
var token string
var code int
if err := json.NewDecoder(r.Body).Decode(&configuration); err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
return
}
if common.IsSecurityEnabled() {
token, err, code = getAclTokenOfConsul(w, r)
if err != nil || code != http.StatusOK {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment