diff --git a/bayard-rest/src/rest/handler.rs b/bayard-rest/src/rest/handler.rs index 15d3383..fdeb13c 100644 --- a/bayard-rest/src/rest/handler.rs +++ b/bayard-rest/src/rest/handler.rs @@ -133,8 +133,8 @@ pub async fn merge(state: AppState) -> Result { #[get("/v1/schema")] pub async fn schema(state: AppState) -> Result { match state.index_client.lock().unwrap().schema() { - Ok(_) => { - let res = HttpResponse::Ok().await.unwrap(); + Ok(s) => { + let res = HttpResponse::Ok().body(s); Ok(res) } Err(e) => {