Nginx config files with suffixes for deleted/disabled/errors
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user