Fix allowed methods repost for carousel’s root address

This commit is contained in:
jordi fita mas 2023-10-12 16:23:32 +02:00
parent eeb1904b5e
commit ad7126cc92
1 changed files with 1 additions and 1 deletions

View File

@ -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 {