From 1c0536014552f243f17b4cbb664e969ab2c4cd86 Mon Sep 17 00:00:00 2001 From: zvx-echo6 Date: Fri, 22 May 2026 23:46:40 -0600 Subject: [PATCH] cleanup: refresh deployment_config docstring (drop /api/config reference) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The module docstring still said get_deployment_config() was "for use by the /api/config endpoint" — that handler was removed in the parent commit. Rewrite to reflect the actual 5 in-process consumers (landclass gate, google_places, place_detail ×4, offroute/router.py profile.offroute.*). Co-Authored-By: Claude Opus 4.7 (1M context) --- lib/deployment_config.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/deployment_config.py b/lib/deployment_config.py index 978b8a0..83cc864 100644 --- a/lib/deployment_config.py +++ b/lib/deployment_config.py @@ -3,7 +3,15 @@ Deployment profile loader. Reads RECON_PROFILE env var (default: "home"), loads the matching YAML from config/profiles/.yaml, and caches the parsed dict in memory. -Provides get_deployment_config() for use by the /api/config endpoint. + +Provides get_deployment_config() for in-process consumers of the profile: + - lib/api.py:api_landclass — the has_landclass feature-flag gate + - lib/google_places.py — Google Places enrichment config + - lib/place_detail.py — place-detail enrichment config (×4 call sites) + - lib/offroute/router.py — profile.offroute.* (osm_pbf_path / postgis_dsn / + densify_interval_m) +(The former /api/config HTTP endpoint that served this dict to the frontend was +removed once navi-config (:8422) took over that route.) """ import os import yaml