Added REST route to get the list of bridges

This commit is contained in:
2025-05-26 20:43:19 +02:00
parent de33c7d521
commit a8171375a8
5 changed files with 46 additions and 1 deletions

View File

@ -188,3 +188,7 @@ pub async fn number_vcpus() -> HttpResult {
pub async fn networks_list() -> HttpResult {
Ok(HttpResponse::Ok().json(net_utils::net_list()))
}
pub async fn bridges_list() -> HttpResult {
Ok(HttpResponse::Ok().json(net_utils::bridges_list()?))
}