anchor.diff:                      {{[admin, internal], all},
                        fun menelaus_web_rbac:handle_check_permission_for_cbauth/1};
                   [?PLUGGABLE_UI, "ui", RestPrefix | _] ->
  -                    {done, menelaus_pluggable_ui:maybe_serve_file(
  -                             RestPrefix, Plugins, nth_path_tail(Path, 3), Req)};
  -
  +                    {ui, IsSSL, fun menelaus_pluggable_ui:maybe_serve_file/4,
  +                        [RestPrefix, Plugins, nth_path_tail(Path, 3)]};
                   [?PLUGGABLE_UI, RestPrefix | _] ->
                       {no_check,
                        fun (PReq) ->
  
positive.code:                 ["sasl_logs", LogName] ->
                      {{[admin, logs], read}, fun diag_handler:handle_sasl_logs/2, [LogName]};
                  ["images" | _] ->
                      {done, menelaus_util:serve_file(Req, Path, AppRoot,
                                                      [{"Cache-Control", "max-age=30000000"}])};
                  ["couchBase" | _] -> {no_check,
                                        fun menelaus_pluggable_ui:proxy_req/4,
                                        ["couchBase",
  
negative.code:                                     "text/html; charset=utf8",
                                      [{"Cache-Control", "must-revalidate"}]).
  
  handle_serve_file(AppRoot, Path, MaxAge, Req) ->
      menelaus_util:serve_file(
          Req, Path, AppRoot,
          [{"Cache-Control", lists:concat(["max-age=", MaxAge])}]).
  
  loop_inner(Req, Info, Path, PathTokens) ->
      menelaus_auth:validate_request(Req),
      perform_action(Req, get_action(Req, Info, Path, PathTokens)).
  