client/src/lib/api.ts is entirely in-memory today with no concept of a backend URL. Add VITE_API_BASE_URL
support (via .env / .env.example) and a thin fetch wrapper, so a future PR that replaces the mock functions'
internals with real fetch calls has a documented, consistent place to point at locka-api.
Acceptance criteria
client/src/lib/api.tsis entirely in-memory today with no concept of a backend URL. AddVITE_API_BASE_URLsupport (via
.env/.env.example) and a thin fetch wrapper, so a future PR that replaces the mock functions'internals with real
fetchcalls has a documented, consistent place to point atlocka-api.Acceptance criteria
.env.exampleadded documentingVITE_API_BASE_URLand any other needed varsclient/src/lib/http.tsfetch wrapper exists (base URL, JSON handling, error normalization) even if unusedby the mock layer yet
client/README.mddocuments how to point the client at a real backend