API: expose desired and effective state with runtime status

This commit is contained in:
Alexey
2026-11-03 22:10:01 +03:00
parent 5040195ca7
commit 996274bed3
32 changed files with 2114 additions and 121 deletions
+3
View File
@@ -10,6 +10,9 @@ pub(super) async fn handle(
) -> Result<Option<Response<Full<Bytes>>>, ApiFailure> {
let api_cfg = &cfg.server.api;
match (method.as_str(), normalized_path) {
("GET", "/v1/config/state") => {
Ok(super::super::config_state::response(shared, query).await?)
}
("GET", "/v1/capabilities") => {
discovery::reject_query(query)?;
let revision = current_revision(&shared.config_path).await?;