ServerFile register ServerFile router with GET method on http.FileServer simple demo:router.ServerFile("/src/*", "/var/www") simple demo:router.ServerFile("/src/*filepath", "/var/www")
(path string, fileRoot string)
| 411 | // simple demo:router.ServerFile("/src/*", "/var/www") |
| 412 | // simple demo:router.ServerFile("/src/*filepath", "/var/www") |
| 413 | func (r *router) ServerFile(path string, fileRoot string) RouterNode { |
| 414 | return r.RegisterServerFile(RouteMethod_GET, path, fileRoot, nil) |
| 415 | } |
| 416 | |
| 417 | // RegisterServerFile register ServerFile router with routeMethod method on http.FileServer |
| 418 | // simple demo:server.RegisterServerFile(RouteMethod_GET, "/src/*", "/var/www", nil) |
nothing calls this directly
no test coverage detected