mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-21 11:26:40 +00:00
Nginx config files with suffixes for deleted/disabled/errors
This commit is contained in:
1 parent
17a108f75f
commit
6efa4e2beb
5 files changed
+96
-20
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user