Added PUT method to HttpServer.
This commit is contained in:
parent
bdcf5fbf63
commit
a000d1edad
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user