Added PATCH HTTP method.
This commit is contained in:
parent
0aa6651fab
commit
78814bf806
@ -36,6 +36,10 @@ func (s *HttpServer) POST(path string, handler http.HandlerFunc) {
|
|||||||
s.router.Handler(http.MethodPost, path, handler)
|
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) {
|
func (s *HttpServer) DELETE(path string, handler http.HandlerFunc) {
|
||||||
s.router.Handler(http.MethodDelete, path, handler)
|
s.router.Handler(http.MethodDelete, path, handler)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user