ServerFile a shortcut for router.ServeFiles(path, fileRoot) simple demo:server.ServerFile("/src/*filepath", "/var/www")
(path string, fileRoot string)
| 350 | // ServerFile a shortcut for router.ServeFiles(path, fileRoot) |
| 351 | // simple demo:server.ServerFile("/src/*filepath", "/var/www") |
| 352 | func (server *HttpServer) ServerFile(path string, fileRoot string) RouterNode { |
| 353 | return server.Router().ServerFile(path, fileRoot) |
| 354 | } |
| 355 | |
| 356 | // RegisterHandlerFunc a shortcut for router.RegisterHandlerFunc(routeMethod string, path string, handler http.HandlerFunc) |
| 357 | func (server *HttpServer) RegisterHandlerFunc(routeMethod string, path string, handler http.HandlerFunc) RouterNode { |
nothing calls this directly
no test coverage detected