"""EX-B2-02 starter: reproduce first, then change only route registration order."""

from fastapi import FastAPI

app = FastAPI(title="Route shadowing exercise")


@app.get("/expedientes/{expediente_id}")
def read_record(expediente_id: str) -> dict[str, str]:
    return {"matched": "dynamic", "id": expediente_id}


@app.get("/expedientes/me")
def read_current_record() -> dict[str, str]:
    return {"matched": "static", "id": "current"}


# Evidence matrix (predict before running):
# GET /expedientes/me
# GET /expedientes/EXP-204
# GET /expedientes/
