1
0
Fork 0

Added PUT method to HttpServer.

This commit is contained in:
Alexander Andreev 2022-10-21 03:21:53 +04:00
parent bdcf5fbf63
commit a000d1edad
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
1 changed files with 4 additions and 0 deletions

View File

@ -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)
}