PUT implements `Router#PUT()` for sub-routes within the Group.
(path string, fileroot string)
| 114 | |
| 115 | // PUT implements `Router#PUT()` for sub-routes within the Group. |
| 116 | func (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. |
| 124 | func (g *xGroup) Group(prefix string, m ...Middleware) Group { |
nothing calls this directly
no test coverage detected