async fn export_config(__arg0: State<Arc<SharedState>>) -> impl IntoResponseExpand description
GET /api/config/export — renders the live in-memory gateway
configuration (routes + policies, exactly what the data plane is running)
as YAML, served as text/yaml; charset=utf-8. This is the gateway.yaml
equivalent of whatever has been built through the UI / Admin API.
Values keep their ${ENV_VAR} templates: env interpolation happens when a
policy is compiled, not in the stored config, so the export mirrors the
source you would write by hand rather than the resolved secrets.
Errors: 500 Internal Server Error if the config cannot be serialized.