fixing rolodex and search
This commit is contained in:
10
README.md
10
README.md
@@ -279,6 +279,16 @@ docker-compose --profile production up -d
|
||||
docker-compose ps
|
||||
```
|
||||
|
||||
## HTTP client usage in the frontend
|
||||
|
||||
- Prefer calling `window.http.wrappedFetch(url, options)` instead of `fetch` directly.
|
||||
- The wrapper automatically adds:
|
||||
- `Authorization: Bearer <token>` when available
|
||||
- `X-Correlation-ID` on every request
|
||||
- `Content-Type: application/json` when you pass a string body (e.g., from `JSON.stringify`)
|
||||
- It also exposes helpers: `window.http.parseErrorEnvelope`, `window.http.toError`, `window.http.formatAlert`.
|
||||
- The global `fetch` remains wrapped for compatibility, but will log a one-time deprecation warning. New code should use `window.http.wrappedFetch`.
|
||||
|
||||
### Traditional Deployment
|
||||
```bash
|
||||
# With gunicorn for production
|
||||
|
||||
Reference in New Issue
Block a user