Skip to main content

router

Function router 

Source
pub fn router() -> Router<ApiState>
Expand description

Configures and returns the Axum router for all advanced protocol endpoints.

Merges OpenID4VCI, OpenID4VP, SPIFFE, CAEP, and ACME handlers into a unified router intended for high-profile identity interactions.

§Example

use auth_framework::api::advanced_protocols;
use axum::Router;

// Within server.rs builder:
let router = Router::new()
    .merge(advanced_protocols::router()) // Auto-binds endpoints
    // .with_state(state)
    ;