Add http.MethodDelete to the list of allowed methods for carousel
This commit is contained in:
parent
9dfa210708
commit
d79a05a619
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue