feat(navigation): refine mobile station explorer

This commit is contained in:
lingniu
2026-08-12 11:28:50 +08:00
parent 9452e30538
commit 1403b84b0b
6 changed files with 208 additions and 12 deletions
+5
View File
@@ -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"}: