Removed unused HTTP methods handler setters.
This commit is contained in:
parent
0fcebc15ce
commit
42bf665a7e
@ -36,18 +36,6 @@ 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) 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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user