RegisterRoute a shortcut for router.RegisterRoute(routeMethod string, path string,handle HttpHandle)
(routeMethod string, path string, handle HttpHandle)
| 360 | |
| 361 | // RegisterRoute a shortcut for router.RegisterRoute(routeMethod string, path string,handle HttpHandle) |
| 362 | func (server *HttpServer) RegisterRoute(routeMethod string, path string, handle HttpHandle) RouterNode { |
| 363 | return server.Router().RegisterRoute(routeMethod, path, handle) |
| 364 | } |
| 365 | |
| 366 | // RegisterServerFile a shortcut for router.RegisterServerFile(routeMethod, path, fileRoot) |
| 367 | // simple demo:server.RegisterServerFile(RouteMethod_GET, "/src/*", "/var/www", nil) |
nothing calls this directly
no test coverage detected