1
0

Added PATCH HTTP method.

This commit is contained in:
Alexander Andreev 2023-05-06 23:09:49 +04:00
parent 0aa6651fab
commit 78814bf806
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -36,6 +36,10 @@ func (s *HttpServer) POST(path string, handler http.HandlerFunc) {
s.router.Handler(http.MethodPost, path, handler)
}
func (s *HttpServer) PATCH(path string, handler http.HandlerFunc) {
s.router.Handler(http.MethodPatch, path, handler)
}
func (s *HttpServer) DELETE(path string, handler http.HandlerFunc) {
s.router.Handler(http.MethodDelete, path, handler)
}