Skip to content

Commit

Permalink
add cfg flags
Browse files Browse the repository at this point in the history
  • Loading branch information
archeoss committed Dec 1, 2023
1 parent 298928c commit ffe277a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions backend/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand All @@ -54,8 +54,6 @@ pub fn api_router_v1(auth_state: BobAuthState) -> Result<Router<BobAuthState>, 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,
Expand Down

0 comments on commit ffe277a

Please sign in to comment.