X-Git-Url: https://git.mar77i.info/?a=blobdiff_plain;f=hub%2Fhubapp.py;h=91c9c5434847d02adebf85bccf30810a844cc455;hb=6d1d482531b77da3cff5616ee40cf558a45c9fda;hp=bd2540b4876c01d5d1db242235c91d02bcf1ce1f;hpb=6128e895bc2a5da5fe645cc9a7ad74ac75af4f6b;p=hublib diff --git a/hub/hubapp.py b/hub/hubapp.py index bd2540b..91c9c54 100644 --- a/hub/hubapp.py +++ b/hub/hubapp.py @@ -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):