2026-05-14 20:01:26 +08:00
|
|
|
"""Compatibility facade for legacy ``web.routes`` imports.
|
2026-03-20 20:59:30 +08:00
|
|
|
|
2026-05-14 20:01:26 +08:00
|
|
|
Endpoint handlers now live under ``web.routers``. The remaining cache/history
|
|
|
|
|
helpers are implemented in ``web.services.city_runtime`` and re-exported here so
|
|
|
|
|
existing tests, monkeypatches, and transitional routers can keep importing
|
|
|
|
|
``web.routes`` while the backend is modularized incrementally.
|
|
|
|
|
"""
|
2026-03-20 20:59:30 +08:00
|
|
|
|
2026-05-14 20:01:26 +08:00
|
|
|
from web.services import city_runtime as _city_runtime
|
2026-03-20 20:59:30 +08:00
|
|
|
|
2026-05-14 20:01:26 +08:00
|
|
|
for _name in _city_runtime.__all__:
|
|
|
|
|
globals()[_name] = getattr(_city_runtime, _name)
|
2026-03-20 20:59:30 +08:00
|
|
|
|
2026-05-14 20:01:26 +08:00
|
|
|
__all__ = list(_city_runtime.__all__)
|