mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-03-04 23:27:46 +01:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user