Nginx config files with suffixes for deleted/disabled/errors

This commit is contained in:
Jamie Curnow
2023-01-06 14:17:12 +10:00
parent 17a108f75f
commit 6efa4e2beb
5 changed files with 96 additions and 20 deletions

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)
}