Skip to main content

auth_layer_for

Function auth_layer_for 

Source
pub fn auth_layer_for(auth: AuthConfig) -> Router
Expand description

Build the auth middleware as a Layer for use with .layer().