ax_core 0.3.2

Core library implementing the functions of ax
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod http;
pub mod service;
mod ws;

use warp::{Filter, Rejection, Reply};

use crate::api::NodeInfo;
use service::EventService;

pub(crate) fn routes(
    node_info: NodeInfo,
    event_service: EventService,
) -> impl Filter<Extract = (impl Reply,), Error = Rejection> + Clone {
    http::routes(node_info.clone(), event_service.clone()).or(ws::routes(node_info, event_service))
}