from fastapi import APIRouter

from app.core.config import get_settings


router = APIRouter()


@router.get("/status")
def menu_status() -> dict[str, object]:
    settings = get_settings()
    return {
        "mode": "legacy-isolated",
        "legacy_source": "MENU2.0",
        "public_url": settings.menu_legacy_public_url,
        "managed_by": "legacy service",
        "notes": [
            "Il modulo resta statico e isolato.",
            "Le sue impostazioni LLM interne non sono state stravolte in questa fase.",
        ],
    }

