"""EX-B2-02 starter: reproduce first, then change only route registration order."""

from fastapi import FastAPI

app = FastAPI(title="Route shadowing exercise")


@app.get("/records/{record_id}")
def read_record(record_id: str) -> dict[str, str]:
    return {"matched": "dynamic", "id": record_id}


@app.get("/records/me")
def read_current_record() -> dict[str, str]:
    return {"matched": "static", "id": "current"}


# Evidence matrix (predict before running):
# GET /records/me
# GET /records/REC-204
# GET /records/
