From 5ca5d447541a5df863641bcd9c2e0faa3d215dd5 Mon Sep 17 00:00:00 2001 From: NHAS Date: Mon, 10 Jun 2024 17:33:26 +1200 Subject: [PATCH] Fix bad verb in settings --- pkg/httputils/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/httputils/util.go b/pkg/httputils/util.go index 250389b..51c3b25 100644 --- a/pkg/httputils/util.go +++ b/pkg/httputils/util.go @@ -53,7 +53,7 @@ func (hum *HTTPUtilMux) Post(path string, h http.HandlerFunc) { } func (hum *HTTPUtilMux) PostJSON(path string, h http.HandlerFunc) { - hum.AllowedMethods(path, JSON, h, http.MethodGet) + hum.AllowedMethods(path, JSON, h, http.MethodPost) } func (hum *HTTPUtilMux) Delete(path string, h http.HandlerFunc) { @@ -61,7 +61,7 @@ func (hum *HTTPUtilMux) Delete(path string, h http.HandlerFunc) { } func (hum *HTTPUtilMux) DeleteJSON(path string, h http.HandlerFunc) { - hum.AllowedMethods(path, JSON, h, http.MethodGet) + hum.AllowedMethods(path, JSON, h, http.MethodDelete) } func NewMux() *HTTPUtilMux {