lean-ctx 3.12.7

LeanCTX | OSS: the open-source runtime for the Context Gateway for AI agents. CLI, MCP server, and supported proxy integrations.
Documentation
// SPDX-License-Identifier: Apache-2.0
mod aggregated;
mod core;
mod diagnostics;
mod overlay;

pub(super) fn handle(
    path: &str,
    _query_str: &str,
    method: &str,
    body: &str,
) -> Option<(&'static str, &'static str, String)> {
    if method.eq_ignore_ascii_case("POST")
        && let result @ Some(_) = overlay::post_route(path, body)
    {
        return result;
    }

    aggregated::get_route(path)
        .or_else(|| core::get_route(path))
        .or_else(|| overlay::get_route(path))
        .or_else(|| diagnostics::get_route(path))
}