make the /api/config endpoint restrictive to what it provides. It will only show what is needed for the current code.

This commit is contained in:
Pablo Revilla
2025-09-17 23:00:44 -07:00
parent 61b74473e3
commit 6e223a066a

View File

@@ -1585,7 +1585,7 @@ async def api_config(request):
site = CONFIG.get("site", {})
safe_site = {
"map_interval": site.get("map_interval", 3), # default 3 if missing
"firehose_interval": site.get("firehose_interal", 3) # default 1000 if missing
"firehose_interval": site.get("firehose_interval", 3) # default 1000 if missing
}
safe_config = {"site": safe_site}