Function define_api

Source
pub(crate) fn define_api<TYPES, State, VER>() -> Result<Api<State, ServerError, VER>, ApiError>
where TYPES: NodeType, State: 'static + Send + Sync + ReadState + WriteState, <State as ReadState>::State: Send + Sync + OrchestratorApi<TYPES>, TYPES::SignatureKey: Serialize, VER: StaticVersionType + 'static,
Expand description

Sets up all API routes