Nginx config files with suffixes for deleted/disabled/errors

This commit is contained in:
Jamie Curnow committed 2023-01-06 14:23:04 +10:00
1 parent 17a108f75f
commit 6efa4e2beb
5 files changed
+96 -20

No files matched your search

+1
View File
@@ -152,6 +152,7 @@ func DeleteHost() func(http.ResponseWriter, *http.Request) {
h.ResultErrorJSON(w, r, http.StatusNotFound, "Not found", nil)
case nil:
h.ResultResponseJSON(w, r, http.StatusOK, item.Delete())
configureHost(item)
default:
h.ResultErrorJSON(w, r, http.StatusBadRequest, err.Error(), nil)
}
@@ -110,6 +110,7 @@ func DeleteUpstream() func(http.ResponseWriter, *http.Request) {
h.ResultErrorJSON(w, r, http.StatusNotFound, "Not found", nil)
case nil:
h.ResultResponseJSON(w, r, http.StatusOK, item.Delete())
configureUpstream(item)
default:
h.ResultErrorJSON(w, r, http.StatusBadRequest, err.Error(), nil)
}