diff --git a/backend/src/services/mod.rs b/backend/src/services/mod.rs index c7887a18..7dcc3cd3 100644 --- a/backend/src/services/mod.rs +++ b/backend/src/services/mod.rs @@ -27,7 +27,7 @@ use api::{get_disks_count, get_nodes_count, get_rps, get_space}; use auth::{login, logout, require_auth, AuthState, BobUser, HttpBobClient, InMemorySessionStore}; use prelude::*; -use self::api::{get_nodes, raw_configuration_by_node, raw_metrics_by_node}; +use self::api::{get_nodes, raw_configuration_by_node, raw_metrics_by_node, get_vdisks}; type BobAuthState = AuthState< BobUser, @@ -45,6 +45,7 @@ type BobAuthState = AuthState< pub fn api_router_v1(auth_state: BobAuthState) -> Result, RouteError> { Router::new() .with_context::() + .api_route("/vdisks", &Method::GET, get_vdisks) .api_route("/root", &Method::GET, root) .api_route("/disks/count", &Method::GET, get_disks_count) .api_route("/nodes/count", &Method::GET, get_nodes_count)