Skip to content

Commit

Permalink
add vdisk route
Browse files Browse the repository at this point in the history
  • Loading branch information
archeoss committed Nov 15, 2023
1 parent c47d361 commit 32f0039
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -45,6 +45,7 @@ type BobAuthState = AuthState<
pub fn api_router_v1(auth_state: BobAuthState) -> Result<Router<BobAuthState>, RouteError> {
Router::new()
.with_context::<ApiV1, ApiDoc>()
.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)
Expand Down

0 comments on commit 32f0039

Please sign in to comment.