23 行
599 B
Python
23 行
599 B
Python
"""Web UI route helpers."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from backend.routes.common import handle_request
|
|
from backend.services.web_hosting_service import WebHostingService
|
|
from core.identity import RequestContext
|
|
from core.security import require_authenticated
|
|
|
|
|
|
def get_web_manifest(
|
|
ctx: RequestContext,
|
|
service: WebHostingService | None = None,
|
|
) -> dict:
|
|
web_service = service or WebHostingService()
|
|
|
|
def action() -> dict[str, Any]:
|
|
require_authenticated(ctx)
|
|
return web_service.manifest()
|
|
|
|
return handle_request(ctx, action)
|