Skip to content

Commit

Permalink
add cfg flags
Browse files Browse the repository at this point in the history
  • Loading branch information
archeoss committed Jan 21, 2024
1 parent 72b408a commit 342abdf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,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 342abdf

Please sign in to comment.