+func (m *XappManager) getConfig(w http.ResponseWriter, r *http.Request) {
+ respondWithJSON(w, http.StatusOK, UploadConfig())
+}
+
+func (m *XappManager) createConfig(w http.ResponseWriter, r *http.Request) {
+ var c XAppConfig
+ if parseConfig(w, r, &c) != nil {
+ return
+ }
+
+ if err := CreateConfigMap(c); err != nil {
+ respondWithError(w, http.StatusInternalServerError, err.Error())
+ return
+ }
+ respondWithJSON(w, http.StatusCreated, nil)
+}
+
+func (m *XappManager) deleteConfig(w http.ResponseWriter, r *http.Request) {
+ var c XAppConfig
+ if parseConfig(w, r, &c) != nil {
+ return
+ }
+
+ if _, err := DeleteConfigMap(c); err != nil {
+ respondWithError(w, http.StatusInternalServerError, err.Error())
+ return
+ }
+ respondWithJSON(w, http.StatusNotFound, nil)
+}
+