mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
return a 200 on health check
This commit is contained in:
parent
764ced8b5c
commit
a268d0e283
2 changed files with 11 additions and 1 deletions
|
@ -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()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue