Add REST route to get networks list

This commit is contained in:
2023-10-31 10:51:13 +01:00
parent f2237d4f2f
commit 2741faa95b
7 changed files with 125 additions and 2 deletions

View File

@ -34,7 +34,7 @@ pub async fn create(client: LibVirtReq, req: web::Json<VMInfo>) -> HttpResult {
/// Get the list of domains
pub async fn list_all(client: LibVirtReq) -> HttpResult {
let list = client.get_full_list().await?;
let list = client.get_full_domains_list().await?;
let mut out = Vec::with_capacity(list.len());
for entry in list {