just_serve method

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

Implementation

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

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