coreason-runtime 0.1.0

Kinetic Plane execution engine for the CoReason Tripartite Cybernetic Manifold
Documentation
// Copyright (c) 2026 CoReason, Inc.
// All rights reserved.

//! HTTP API module for the CoReason Runtime.
//!
//! This module contains all Axum HTTP handlers, replacing the Python FastAPI
//! routers. Each sub-module corresponds to a logical API domain.

pub mod auth;
pub mod capabilities;
pub mod discovery;
pub mod dlp;
pub mod history;
pub mod middleware;
pub mod oracle;
pub mod predict;
pub mod profile;
pub mod schema;
pub mod semantic_space;
pub mod shocks;
pub mod state;
pub mod telemetry;
pub mod temporal;

use crate::GatewayState;
use axum::Router;
use std::sync::Arc;

/// Build the complete API router with all sub-routers nested.
pub fn build_api_router() -> Router<Arc<GatewayState>> {
    Router::new()
        .merge(state::router())
        .merge(capabilities::router())
        .merge(telemetry::router())
        .merge(oracle::router())
        .merge(predict::router())
        .merge(auth::router())
        .merge(dlp::router())
        .merge(discovery::router())
        .merge(history::router())
        .merge(profile::router())
        .merge(semantic_space::router())
        .merge(shocks::router())
        .merge(temporal::router())
        .merge(schema::router())
}