Skip to main content

serve_axum

Function serve_axum 

Source
pub async fn serve_axum<S>(
    port: u16,
    state: S,
    modules: OptionalModules,
    max_connections: Option<usize>,
) -> Result<()>
Expand description

Start Axum HTTP server with combined v1 and v2 APIs

This serves both APIs at /v1/* and /v2/* from a single state implementation.

catchup, like the query-service modules (status, availability, node, token, block-state, fee-state, reward-state, database) and v2, is always on: tide-disco’s SQL mode registered it unconditionally. submit, config, explorer, light-client, and hotshot-events follow Options, matching Options::init_with_query_module_sql.