feat(navigation): refine mobile station explorer
This commit is contained in:
@@ -125,6 +125,11 @@ def _prewarm_station_directory_cache():
|
||||
class StationNavigationHandler(SimpleHTTPRequestHandler):
|
||||
server_version = "LingniuStationNavigation/1.0"
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
# Static files must resolve from this release directory even when the
|
||||
# local launcher is invoked from the repository root.
|
||||
super().__init__(*args, directory=str(ROOT), **kwargs)
|
||||
|
||||
def do_GET(self):
|
||||
path = urlparse(self.path).path
|
||||
if path in {"/", "/index.html"}:
|
||||
|
||||
Reference in New Issue
Block a user