fix(api): restore public access to country_cities + opportunity endpoints
opportunity_map.html (public page) still fetches these. Only countries.json and city_venues.json are no longer called from any public page, so those two keep @login_required. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -48,7 +48,6 @@ async def countries():
|
||||
|
||||
|
||||
@bp.route("/markets/<country_slug>/cities.json")
|
||||
@login_required
|
||||
async def country_cities(country_slug: str):
|
||||
"""City-level data for a country overview bubble map."""
|
||||
await _require_maps_flag()
|
||||
@@ -102,7 +101,6 @@ async def city_venues(country_slug: str, city_slug: str):
|
||||
|
||||
|
||||
@bp.route("/opportunity/<country_slug>.json")
|
||||
@login_required
|
||||
async def opportunity(country_slug: str):
|
||||
"""Location-level opportunity scores for the opportunity map."""
|
||||
await _require_maps_flag()
|
||||
|
||||
Reference in New Issue
Block a user