From 2db322a55c99a99853e3dc8b0f00492c550c6022 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Tue, 23 Jan 2024 11:31:34 +0100 Subject: [PATCH] =?UTF-8?q?Add=20missing=20MethodPut=20to=20location/admin?= =?UTF-8?q?.gohtml=E2=80=99s=20MethodNotAllowed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/location/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/location/admin.go b/pkg/location/admin.go index 694cc22..fd990d3 100644 --- a/pkg/location/admin.go +++ b/pkg/location/admin.go @@ -40,7 +40,7 @@ func (h *AdminHandler) Handler(user *auth.User, company *auth.Company, conn *dat case http.MethodPut: updateLocationSettings(w, r, user, company, conn) default: - httplib.MethodNotAllowed(w, r, http.MethodGet) + httplib.MethodNotAllowed(w, r, http.MethodGet, http.MethodPut) } default: http.NotFound(w, r)