47 lines
1.6 KiB
Python
47 lines
1.6 KiB
Python
|
|
from fastapi import APIRouter
|
||
|
|
|
||
|
|
from api.dashboard_assets_router import build_dashboard_assets_router
|
||
|
|
from api.dashboard_bot_admin_router import build_dashboard_bot_admin_router
|
||
|
|
from api.dashboard_bot_io_router import build_dashboard_bot_io_router
|
||
|
|
from api.dashboard_router_support import DashboardRouterDeps
|
||
|
|
|
||
|
|
|
||
|
|
def build_dashboard_router(
|
||
|
|
*,
|
||
|
|
image_service,
|
||
|
|
provider_test_service,
|
||
|
|
bot_lifecycle_service,
|
||
|
|
bot_query_service,
|
||
|
|
bot_channel_service,
|
||
|
|
skill_service,
|
||
|
|
bot_config_state_service,
|
||
|
|
runtime_service,
|
||
|
|
bot_message_service,
|
||
|
|
workspace_service,
|
||
|
|
speech_transcription_service,
|
||
|
|
app_lifecycle_service,
|
||
|
|
resolve_edge_state_context,
|
||
|
|
logger,
|
||
|
|
) -> APIRouter:
|
||
|
|
deps = DashboardRouterDeps(
|
||
|
|
image_service=image_service,
|
||
|
|
provider_test_service=provider_test_service,
|
||
|
|
bot_lifecycle_service=bot_lifecycle_service,
|
||
|
|
bot_query_service=bot_query_service,
|
||
|
|
bot_channel_service=bot_channel_service,
|
||
|
|
skill_service=skill_service,
|
||
|
|
bot_config_state_service=bot_config_state_service,
|
||
|
|
runtime_service=runtime_service,
|
||
|
|
bot_message_service=bot_message_service,
|
||
|
|
workspace_service=workspace_service,
|
||
|
|
speech_transcription_service=speech_transcription_service,
|
||
|
|
app_lifecycle_service=app_lifecycle_service,
|
||
|
|
resolve_edge_state_context=resolve_edge_state_context,
|
||
|
|
logger=logger,
|
||
|
|
)
|
||
|
|
router = APIRouter()
|
||
|
|
router.include_router(build_dashboard_assets_router(deps=deps))
|
||
|
|
router.include_router(build_dashboard_bot_admin_router(deps=deps))
|
||
|
|
router.include_router(build_dashboard_bot_io_router(deps=deps))
|
||
|
|
return router
|