Skip to content

Commit b53f412

Browse files
committed
add vdisk route
1 parent 547dc9a commit b53f412

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/services/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use api::{get_disks_count, get_nodes_count, get_rps, get_space};
2727
use auth::{login, logout, require_auth, AuthState, BobUser, HttpBobClient, InMemorySessionStore};
2828
use prelude::*;
2929

30-
use self::api::{get_nodes, raw_configuration_by_node, raw_metrics_by_node};
30+
use self::api::{get_nodes, raw_configuration_by_node, raw_metrics_by_node, get_vdisks};
3131

3232
type BobAuthState = AuthState<
3333
BobUser,
@@ -45,6 +45,7 @@ type BobAuthState = AuthState<
4545
pub fn api_router_v1(auth_state: BobAuthState) -> Result<Router<BobAuthState>, RouteError> {
4646
Router::new()
4747
.with_context::<ApiV1, ApiDoc>()
48+
.api_route("/vdisks", &Method::GET, get_vdisks)
4849
.api_route("/root", &Method::GET, root)
4950
.api_route("/disks/count", &Method::GET, get_disks_count)
5051
.api_route("/nodes/count", &Method::GET, get_nodes_count)

0 commit comments

Comments
 (0)