serve method

Future serve (
  1. HttpRequest request,
  2. String root,
  3. String path
)

Implementation

Future serve(HttpRequest request, String root, String path) {
  if (pubServeUrl != null) {
    // path = normalize(path);

    return proxyToPub(request, path);
  } else {
    return serveFromFile(request, "${root}${path}");
  }
}