apigate 1.0.0

Macro-driven API gateway for Rust: declarative routing, request transformation, and reverse proxying built on axum
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct AppState;
struct Output;

#[apigate::map]
async fn map_without_input(
    state: &AppState,
    ctx: &mut apigate::PartsCtx<'_>,
) -> apigate::MapResult<Output> {
    let _ = state;
    let _ = ctx;
    Ok(Output)
}

fn main() {}