X-Git-Url: https://git.mar77i.info/?a=blobdiff_plain;f=hub%2Fapp.py;h=2a0a712f515c6984a53f56ff562094c14433508d;hb=6d1d482531b77da3cff5616ee40cf558a45c9fda;hp=959024f2c2a41bd2bd3e223e6b58bc12a0c444db;hpb=6128e895bc2a5da5fe645cc9a7ad74ac75af4f6b;p=hublib diff --git a/hub/app.py b/hub/app.py index 959024f..2a0a712 100644 --- a/hub/app.py +++ b/hub/app.py @@ -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)