fix gurtca post_json func

This commit is contained in:
Face
2025-08-25 13:33:42 +03:00
parent 257a88a914
commit 09d8ca77ac
3 changed files with 12 additions and 2 deletions

View File

@@ -189,4 +189,8 @@ impl GurtCAClient {
anyhow::bail!("HTTP bootstrap failed: {}", response.status())
}
}
pub async fn post_json<T: serde::Serialize>(&self, url: &str, data: &T) -> Result<GurtResponse> {
self.gurt_client.post_json(url, data).await.map_err(Into::into)
}
}