2026-07-05 09:24:00 +08:00
|
|
|
"""AstrBot WebUI adapter helpers.
|
|
|
|
|
|
|
|
|
|
The actual AstrBot runtime performs route registration. This adapter keeps the
|
|
|
|
|
ImageStudio mount contract in one place so the runtime layer can wire it
|
|
|
|
|
without starting a standalone server.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
from backend.services.web_hosting_service import WebHostingService
|
2026-07-05 10:53:00 +08:00
|
|
|
from backend.route_registry import route_manifest
|
2026-07-05 09:24:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_web_mount_manifest() -> dict:
|
2026-07-05 10:53:00 +08:00
|
|
|
manifest = WebHostingService().manifest()
|
|
|
|
|
manifest["api_routes"] = route_manifest()
|
|
|
|
|
return manifest
|