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
struct AppState;

#[apigate::hook]
async fn hook(
    scope: &mut apigate::RequestScope<'_>,
    state: &AppState,
) -> apigate::HookResult {
    let _ = scope;
    let _ = state;
    Ok(())
}

fn main() {}