INNER CODE UNIT · Python
api_static
marc-shade/world-intel-mcp · src/world_intel_mcp/dashboard/app.py:496
async def api_static(request):
"""Return static geospatial datasets instantly (no API calls).
The dashboard fetches this on boot so the infrastructure layer
populates immediately without waiting for the full SSE gather.
"""
return JSONResponse(
{
"military_bases": {"bases": MILITARY_BASES, "count": len(MILITARY_BASES)},
"strategic_ports": {
"ports": STRATEGIC_PORTS,
"count": len(STRATEGIC_PORTS),
},
"pipelines": {"pipelines": PIPELINES, "count": len(PIPELINES)},
"nuclear_facilities": {
"facilities": NUCLEAR_FACILITIES,
"count": len(NUCLEAR_FACILITIES),
},