trz-gateway-server 0.1.6

Secure Proxy / Agents implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use axum::Router;
use trz_gateway_common::is_global::IsGlobal;

/// Configures the routes served by Terrazzo Gateway HTTP server.
pub trait AppConfig: IsGlobal {
    fn configure_app(&self, router: Router) -> Router;
}

impl<C: Fn(Router) -> Router + IsGlobal> AppConfig for C {
    fn configure_app(&self, router: Router) -> Router {
        self(router)
    }
}