Skip to main content

all_rest_routes

Function all_rest_routes 

Source
pub fn all_rest_routes<S0, S1>(
    status_service: Arc<S0>,
    token_service: Arc<S1>,
) -> Router
where S0: StatusService + Send + Sync + 'static, S1: TokenService + Send + Sync + 'static,
Expand description

Build a combined Axum router with REST routes for all proto services.

Each service is generic - pass your concrete implementations as Arc<T>.