MCPcopy Create free account
hub / github.com/devfeel/dotweb / RegisterRoute

Method RegisterRoute

group.go:128–130  ·  view source on GitHub ↗
(method, path string, handler HttpHandle)

Source from the content-addressed store, hash-verified

126}
127
128func (g *xGroup) RegisterRoute(method, path string, handler HttpHandle) RouterNode {
129 return g.add(method, path, handler)
130}
131
132func (g *xGroup) add(method, path string, handler HttpHandle) RouterNode {
133 node := g.server.Router().RegisterRoute(method, g.prefix+path, handler)

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected