astrbot_plugin_imagestudio/adapters/webui_adapter.py

18 行
535 B
Python

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
from backend.route_registry import route_manifest
2026-07-05 09:24:00 +08:00
def get_web_mount_manifest() -> dict:
manifest = WebHostingService().manifest()
manifest["api_routes"] = route_manifest()
return manifest