from __future__ import annotations

from fastapi import APIRouter

from backend.settings import APP_VERSION


router = APIRouter()


@router.get("/version")
def version() -> dict[str, str]:
    """Return API version information."""
    return {"version": APP_VERSION}


