From ad7126cc92b223d023e2ae814aedbb6d08968f91 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Thu, 12 Oct 2023 16:23:32 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20allowed=20methods=20repost=20for=20carous?= =?UTF-8?q?el=E2=80=99s=20root=20address?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/carousel/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/carousel/admin.go b/pkg/carousel/admin.go index f620f85..4c01036 100644 --- a/pkg/carousel/admin.go +++ b/pkg/carousel/admin.go @@ -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 {