MCPcopy Index your code
hub / github.com/labstack/echo / Static

Method Static

group.go:112–115  ·  view source on GitHub ↗

Static implements `Echo#Static()` for sub-routes within the Group.

(pathPrefix, fsRoot string, middleware ...MiddlewareFunc)

Source from the content-addressed store, hash-verified

110
111// Static implements `Echo#Static()` for sub-routes within the Group.
112func (g *Group) Static(pathPrefix, fsRoot string, middleware ...MiddlewareFunc) RouteInfo {
113 subFs := MustSubFS(g.echo.Filesystem, fsRoot)
114 return g.StaticFS(pathPrefix, subFs, middleware...)
115}
116
117// StaticFS implements `Echo#StaticFS()` for sub-routes within the Group.
118//

Callers

nothing calls this directly

Calls 2

StaticFSMethod · 0.95
MustSubFSFunction · 0.85

Tested by

no test coverage detected