Add http.MethodDelete to the list of allowed methods for carousel

This commit is contained in:
jordi fita mas 2023-09-25 20:03:38 +02:00
parent 9dfa210708
commit d79a05a619
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ func (h *AdminHandler) Handler(user *auth.User, company *auth.Company, conn *dat
case http.MethodDelete:
h.deleteSlide(w, r, user, conn, id)
default:
httplib.MethodNotAllowed(w, r, http.MethodGet, http.MethodPut)
httplib.MethodNotAllowed(w, r, http.MethodGet, http.MethodPut, http.MethodDelete)
}
default:
loc, ok := h.locales.Get(langTag)