Function create_with_config

Source
pub fn create_with_config<H, T>(handler: H, config: RouteConfig) -> MethodRouter
where H: Handler<T>, T: Send + 'static,