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

Method ServerFile

group.go:116–121  ·  view source on GitHub ↗

PUT implements `Router#PUT()` for sub-routes within the Group.

(path string, fileroot string)

Source from the content-addressed store, hash-verified

114
115// PUT implements `Router#PUT()` for sub-routes within the Group.
116func (g *xGroup) ServerFile(path string, fileroot string) RouterNode {
117 g.allRouterExpress[RouteMethod_GET+routerExpressSplit+g.prefix+path] = struct{}{}
118 node := g.server.Router().ServerFile(g.prefix+path, fileroot)
119 node.Node().groupMiddlewares = g.middlewares
120 return node
121}
122
123// Group creates a new sub-group with prefix and optional sub-group-level middleware.
124func (g *xGroup) Group(prefix string, m ...Middleware) Group {

Callers

nothing calls this directly

Calls 3

RouterMethod · 0.80
ServerFileMethod · 0.65
NodeMethod · 0.65

Tested by

no test coverage detected