18 行
524 B
Python
18 行
524 B
Python
"""UI route handlers."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from backend.routes.common import handle_request
|
|
from backend.services.ui_service import UiService
|
|
from core.identity import RequestContext
|
|
from core.security import require_authenticated
|
|
|
|
|
|
def get_ui_bootstrap(ctx: RequestContext, service: UiService | None = None) -> dict:
|
|
ui_service = service or UiService()
|
|
|
|
def action() -> dict:
|
|
require_authenticated(ctx)
|
|
return ui_service.get_bootstrap(ctx)
|
|
|
|
return handle_request(ctx, action)
|