diff --git a/dbtunnel/vendor/asgiproxy/frameworks.py b/dbtunnel/vendor/asgiproxy/frameworks.py index 28f6932..b89a9ef 100644 --- a/dbtunnel/vendor/asgiproxy/frameworks.py +++ b/dbtunnel/vendor/asgiproxy/frameworks.py @@ -38,7 +38,15 @@ def _modify_js_content_root_rewrite(content): return content def _modify_js_bundle(content, root_path): - list_of_uris = [b"/project/settings", b"/auth/config", b"/ws/socket.io", b"/logo", b"/readme", b"/login", b"/auth"] + list_of_uris = [ + b"/feedback", + b"/project", + b"/auth/config", + b"/ws/socket.io", + b"/logo", + b"/readme", + b"/login", + b"/auth"] for uri in list_of_uris: content = content.replace(uri, root_path.encode("utf-8") + uri) @@ -70,6 +78,7 @@ def _modify_settings(content, root_path): "rewrite_host_header": f"{service_host}:{service_port}", "modify_content": { "/": modify_root, + "/login": modify_root, "": modify_root, "*assets/index-*.js": modify_js_bundle, "*settings": modify_settings, @@ -178,6 +187,7 @@ def _modify_js_bundle(content, root_path): )() return config + class Frameworks: STREAMLIT: str = "streamlit" GRADIO: str = "gradio"