Skip to main content

create_router_with_auth

Function create_router_with_auth 

Source
pub fn create_router_with_auth(
    service: SynthService,
    cors_config: CorsConfig,
    auth_config: AuthConfig,
) -> Router
Expand description

Create the REST API router with custom CORS and authentication settings.