mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
use json instead of body when crafting the request
This commit is contained in:
parent
a268d0e283
commit
233c1e304d
1 changed files with 1 additions and 2 deletions
|
@ -9,6 +9,5 @@ pub fn services(cfg: &mut web::ServiceConfig) {
|
||||||
|
|
||||||
#[get("/health")]
|
#[get("/health")]
|
||||||
async fn get_health() -> Result<HttpResponse, ResponseError> {
|
async fn get_health() -> Result<HttpResponse, ResponseError> {
|
||||||
let payload = serde_json::json!({ "status": "available" });
|
Ok(HttpResponse::Ok().json(serde_json::json!({ "status": "available" })))
|
||||||
Ok(HttpResponse::Ok().body(payload.to_string()))
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue