Static implements `Echo#Static()` for sub-routes within the Group.
(pathPrefix, fsRoot string, middleware ...MiddlewareFunc)
| 110 | |
| 111 | // Static implements `Echo#Static()` for sub-routes within the Group. |
| 112 | func (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 | // |