Skip to content

Commit

Permalink
Fix bad verb in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Jun 10, 2024
1 parent 2f3320d commit 5ca5d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/httputils/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ 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) {
hum.AllowedMethods(path, "", h, http.MethodDelete)
}

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 {
Expand Down

0 comments on commit 5ca5d44

Please sign in to comment.