diff --git a/backend/src/lib.rs b/backend/src/lib.rs index 909acecb..f292c4ea 100644 --- a/backend/src/lib.rs +++ b/backend/src/lib.rs @@ -28,7 +28,6 @@ impl Modify for SecurityAddon { } } -// #[cfg_attr(not(all(feature = "swagger", debug_assertions)), openapi())] #[cfg_attr(all(feature = "swagger", debug_assertions), derive(OpenApi))] #[cfg_attr(all(feature = "swagger", debug_assertions), openapi( paths( @@ -38,14 +37,10 @@ impl Modify for SecurityAddon { services::api::get_nodes_count, services::api::get_rps, services::api::get_space, - // services::api::get_nodes, services::api::raw_metrics_by_node, services::api::raw_configuration_by_node, - // services::api::get_vdisks, services::api::get_node_info, - services::api::get_vdisk_info, services::api::get_nodes_list, - services::api::get_vdisks_list, ), components( schemas(models::shared::Credentials, models::shared::Hostname, models::shared::BobConnectionData, diff --git a/backend/src/services/mod.rs b/backend/src/services/mod.rs index 8bcf6d65..7ac21ae8 100644 --- a/backend/src/services/mod.rs +++ b/backend/src/services/mod.rs @@ -27,7 +27,7 @@ pub mod methods; use api::{ get_disks_count, get_node_info, get_nodes_count, get_nodes_list, get_rps, get_space, - get_vdisk_info, get_vdisks_list, raw_configuration_by_node, raw_metrics_by_node, + raw_configuration_by_node, raw_metrics_by_node, }; use auth::{login, logout, require_auth, AuthState, BobUser, HttpBobClient, InMemorySessionStore}; use prelude::*; @@ -54,8 +54,6 @@ pub fn api_router_v1(auth_state: BobAuthState) -> Result, R .api_route("/nodes/space", &Method::GET, get_space) .api_route("/nodes/list", &Method::GET, get_nodes_list) .api_route("/nodes/:node_name", &Method::GET, get_node_info) - .api_route("/vdisks/list", &Method::GET, get_vdisks_list) - .api_route("/vdisks/:vdisk_id", &Method::GET, get_vdisk_info) .api_route( "/nodes/:node_name/metrics", &Method::GET,