mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
return a 200 on health check
This commit is contained in:
@ -9,5 +9,6 @@ pub fn services(cfg: &mut web::ServiceConfig) {
|
||||
|
||||
#[get("/health")]
|
||||
async fn get_health() -> Result<HttpResponse, ResponseError> {
|
||||
Ok(HttpResponse::NoContent().finish())
|
||||
let payload = serde_json::json!({ "status": "available" });
|
||||
Ok(HttpResponse::Ok().body(payload.to_string()))
|
||||
}
|
||||
|
Reference in New Issue
Block a user