1
0

Removed unused HTTP methods handler setters.

This commit is contained in:
Alexander Andreev 2022-06-30 00:26:36 +04:00
parent 91755551ee
commit 0d701dba34
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -32,22 +32,6 @@ func (s *HttpServer) GET(path string, handler http.HandlerFunc) {
s.router.Handler(http.MethodGet, path, handler) s.router.Handler(http.MethodGet, path, handler)
} }
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) 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)
}
func (s *HttpServer) ServeStatic(path string, fsys http.FileSystem) { func (s *HttpServer) ServeStatic(path string, fsys http.FileSystem) {
s.router.ServeFiles(path, fsys) s.router.ServeFiles(path, fsys)
} }