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 6ab5d56 commit 7e73845
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ impl Modify for SecurityAddon {
services::api::raw_configuration_by_node,
services::api::get_node_info,
services::api::get_nodes_list,
services::api::get_vdisk_info,
services::api::get_vdisks_list,
),
components(
schemas(models::shared::Credentials, models::shared::Hostname, models::shared::BobConnectionData,
Expand Down
4 changes: 4 additions & 0 deletions backend/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ use api::{
use auth::{login, logout, require_auth, AuthState, BobUser, HttpBobClient, InMemorySessionStore};
use prelude::*;

use self::api::{get_vdisk_info, get_vdisks_list};

type BobAuthState = AuthState<
BobUser,
Uuid,
Expand All @@ -54,6 +56,8 @@ 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 7e73845

Please sign in to comment.