diff --git a/frontend/README.md b/frontend/README.md index 3470256..ebbc012 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -10,7 +10,7 @@ npm install npm run dev ``` -The UI uses Webpack mode because the native Windows SWC binary may be unavailable. Browser requests use the same-origin `/api` proxy, so the browser does not need CORS access to the Python API. The proxy targets `http://127.0.0.1:8080` by default. Set `BACKEND_API_URL` in the frontend environment to override it: +The UI uses Webpack mode because the native Windows SWC binary may be unavailable. Browser requests use the same-origin `/api` proxy, so the browser does not need CORS access to the Python API. The proxy targets `http://127.0.0.1:8080` by default. ```powershell $env:BACKEND_API_URL = "http://127.0.0.1:8080" @@ -22,8 +22,15 @@ The current backend API surface is: - `GET /allele-frequency?variant=...&project_id=...&min_cell_size=...` - `POST /linear-regression` with `features`, `target`, `project_id`, `filters`, and `min_cell_size`. - `POST /logistic-regression` with `features`, `target`, `project_id`, `filters`, and `min_cell_size`. +- `GET /metadata` +- `GET /examples/{name}` +- `POST /run` +- `GET /run/{run_id}` +- `GET /overseer` +- `POST /overseer/{spec_hash}/{decision}` +- `GET /audit` + -The Next.js route at `app/api/[...path]/route.js` forwards those requests server-side, avoiding browser CORS. Metadata, example loading, run polling, overseer, and audit routes are not exposed by the current backend, so the UI uses static variable/project choices and the existing example selector includes a `logistic_regression` mode for the new endpoint. Start the Python API from the repository root on port 8080, then start this frontend: