refactor: rename GetHandler to GetHttpRouter

This commit is contained in:
Derrick Hammer 2024-01-14 22:06:57 -05:00
parent 3d12cff53e
commit d79455c68c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import (
type HTTPService interface { type HTTPService interface {
Service Service
GetHandler() *httprouter.Router GetHttpRouter() *httprouter.Router
SetHttpHandler(handler HTTPHandler) SetHttpHandler(handler HTTPHandler)
} }

View File

@ -336,5 +336,5 @@ func (n *NodeImpl) ConnectionTracker() *sync.WaitGroup {
} }
func (n *NodeImpl) HTTPRouter() *httprouter.Router { func (n *NodeImpl) HTTPRouter() *httprouter.Router {
return n.services.HTTP().GetHandler() return n.services.HTTP().GetHttpRouter()
} }

View File

@ -28,7 +28,7 @@ func NewHTTP(node interfaces.Node) interfaces.HTTPService {
} }
} }
func (h *HTTPImpl) GetHandler() *httprouter.Router { func (h *HTTPImpl) GetHttpRouter() *httprouter.Router {
mux := jape.Mux(map[string]jape.Handler{ mux := jape.Mux(map[string]jape.Handler{
"GET /s5/version": h.versionHandler, "GET /s5/version": h.versionHandler,
"GET /s5/p2p": h.p2pHandler, "GET /s5/p2p": h.p2pHandler,