fn register_get_handler<F, Fut>( handlers: &mut Handlers, route: &str, func: F, is_authenticated: bool, router: Router, ) -> Routerwhere F: Fn(Extension<Arc<Gateway>>) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Result<Json<Value>, GatewayError>> + Send + 'static,
Registers a GET API handler for both the HTTP server and the Iroh Endpoint.
Endpoint