diff --git a/pkg/server/http.go b/pkg/server/http.go index 2153352..40e2422 100644 --- a/pkg/server/http.go +++ b/pkg/server/http.go @@ -40,6 +40,10 @@ func (s *HttpServer) PATCH(path string, handler http.HandlerFunc) { s.router.Handler(http.MethodPatch, path, handler) } +func (s *HttpServer) PUT(path string, handler http.HandlerFunc) { + s.router.Handler(http.MethodPut, path, handler) +} + func (s *HttpServer) DELETE(path string, handler http.HandlerFunc) { s.router.Handler(http.MethodDelete, path, handler) }