Skip to main content

app

Function app 

Source
pub(crate) fn app<TYPES: NodeType>(
    state: Arc<RwLock<OrchestratorState<TYPES>>>,
) -> Router
Expand description

Builds the full router: the app-level healthcheck, plus the api module served both unversioned and under /v0. Every response carries permissive CORS headers.