]> git.mar77i.info Git - hublib/blobdiff - hub/hubapp.py
move common.js to root
[hublib] / hub / hubapp.py
index bd2540b4876c01d5d1db242235c91d02bcf1ce1f..91c9c5434847d02adebf85bccf30810a844cc455 100644 (file)
@@ -97,6 +97,8 @@ class BaseHubApp:
         elif uri_tail == "index.html":
             uri_tail = ""
         name = self.name
+        if name == "root":
+            name = ""
         if name and uri_tail:
             name = f"{name}/"
         return f"/{name}{uri_tail}"
@@ -143,7 +145,7 @@ class RootApp(BaseHubApp):
     SCAN_FILES_RECURSIVELY = False
 
     def __init__(self, app, base_dir):
-        super().__init__(app, base_dir, "")
+        super().__init__(app, base_dir, "root")
 
     @staticmethod
     def is_master_uri(uri_tail):