]> git.mar77i.info Git - hublib/blobdiff - hub/app.py
move common.js to root
[hublib] / hub / app.py
index 959024f2c2a41bd2bd3e223e6b58bc12a0c444db..2a0a712f515c6984a53f56ff562094c14433508d 100644 (file)
@@ -36,8 +36,6 @@ class App(FalconApp):
         self.add_error_handler(Exception, self.print_exception)
 
     def get_hubapp_by_name(self, name):
-        if name == "root":
-            name = ""
         return self.hubapps[name]
 
     async def print_exception(self, req, resp, ex, params):
@@ -72,7 +70,7 @@ class HubServer(Server):
             host = f"{host}:{port}"
         app = config.loaded_app.app
         print("Secret:", app.secret)
-        for key, value in app.root_app.files_per_uris.items():
+        for key, value in app.hubapps["root"].files_per_uris.items():
             if Path(value.path.name).stem == "index.html":
                 url = urlunsplit((protocol_name, host, key, "", ""))
                 print("URL:", url)