register_route

Function register_route 

Source
pub fn register_route<State, E: RoutableHttpEvent>(
    method: &'static str,
    path: &'static str,
    handler: impl Fn(RouteContext<State, E>) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send>> + Send + Sync + 'static,
)
where State: Send + Sync + Clone + 'static,