From d556ceeceed3a949c83837e0f48a95a2c5742da5 Mon Sep 17 00:00:00 2001 From: Deeman Date: Sat, 7 Mar 2026 20:41:12 +0100 Subject: [PATCH] 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 --- web/src/padelnomics/api.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/src/padelnomics/api.py b/web/src/padelnomics/api.py index 7de16d4..3bd6f0b 100644 --- a/web/src/padelnomics/api.py +++ b/web/src/padelnomics/api.py @@ -48,7 +48,6 @@ async def countries(): @bp.route("/markets//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/.json") -@login_required async def opportunity(country_slug: str): """Location-level opportunity scores for the opportunity map.""" await _require_maps_flag()