Skip to main content

create_router

Function create_router 

Source
pub fn create_router(
    processor: Arc<SignalProcessor>,
    api_keys: Vec<ApiKeyConfig>,
) -> Router
Expand description

Build the axum router with all routes and CORS enabled.

api_keys is taken from BrainConfig.access.api_keys by the caller.