xnode_manager_sdk/info/
handlers.rs

1use crate::{
2    info::models::{Flake, FlakeQuery},
3    utils::{Empty, SessionGetInput, SessionGetOutput, session_get},
4};
5
6pub fn scope() -> String {
7    "/info".to_string()
8}
9
10pub type FlakeInput<'a> = SessionGetInput<'a, Empty, FlakeQuery>;
11pub type FlakeOutput = Flake;
12pub async fn flake(input: FlakeInput<'_>) -> SessionGetOutput<FlakeOutput> {
13    session_get(input, scope(), |_path| "/flake").await
14}