Fix allowed methods repost for carousel’s root address
This commit is contained in:
parent
eeb1904b5e
commit
ad7126cc92
|
@ -44,7 +44,7 @@ func (h *AdminHandler) Handler(user *auth.User, company *auth.Company, conn *dat
|
|||
case http.MethodPost:
|
||||
addSlide(w, r, user, company, conn, h.name)
|
||||
default:
|
||||
httplib.MethodNotAllowed(w, r, http.MethodGet)
|
||||
httplib.MethodNotAllowed(w, r, http.MethodPost)
|
||||
}
|
||||
case "new":
|
||||
switch r.Method {
|
||||
|
|
Loading…
Reference in New Issue