Add url parameter to ai::extract_roaster(), extract_roast(), and extract_bag_scan() instead of using a hardcoded constant. Wire through AppState.openrouter_url (defaulting to the production URL), matching the existing pattern used for foursquare_url. Add test infrastructure: session creation helper, page_url() on TestApp, and spawn_app_with_openrouter_mock() for wiremock-based AI extraction testing. |
||
|---|---|---|
| .. | ||
| auth_api.rs | ||
| backup.rs | ||
| bags_api.rs | ||
| brews_api.rs | ||
| cafes_api.rs | ||
| cups_api.rs | ||
| datastar.rs | ||
| gear_api.rs | ||
| helpers.rs | ||
| main.rs | ||
| nearby_api.rs | ||
| roasters_api.rs | ||
| roasts_api.rs | ||
| timeline.rs | ||