From e03a0e320eb575387847709e308da89f32af7fc7 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 17 Dec 2022 21:50:18 +0400 Subject: [PATCH] Removed unused methods from HTTP server. --- internal/server/http.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/internal/server/http.go b/internal/server/http.go index 34b8cb6..4322ba9 100644 --- a/internal/server/http.go +++ b/internal/server/http.go @@ -32,18 +32,6 @@ func (s *HttpServer) GET(path string, handler http.HandlerFunc) { 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) ServeStatic(path string, fsys http.FileSystem) { - s.router.ServeFiles(path, fsys) -} - -func (s *HttpServer) SetNotFoundHandler(handler http.HandlerFunc) { - s.router.NotFound = handler -} - // GetURLParam wrapper around underlying router for getting URL parameters. func GetURLParam(r *http.Request, param string) string { return httprouter.ParamsFromContext(r.Context()).ByName(param)