Can delete network filter

This commit is contained in:
2024-01-02 15:45:31 +01:00
parent d741e12653
commit b4f65a6703
4 changed files with 41 additions and 1 deletions

View File

@ -91,3 +91,10 @@ pub async fn update(
Ok(HttpResponse::Ok().json("Network filter updated"))
}
/// Delete a network filter
pub async fn delete(client: LibVirtReq, path: web::Path<NetworkFilterID>) -> HttpResult {
client.delete_network_filter(path.uid).await?;
Ok(HttpResponse::Ok().json("Network deleted"))
}