mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
follow the IBM convention
This commit is contained in:
parent
f6d0689967
commit
018cadc598
@ -9,6 +9,6 @@ pub fn services(cfg: &mut web::ServiceConfig) {
|
||||
|
||||
#[get("/health")]
|
||||
async fn get_health() -> Result<HttpResponse, ResponseError> {
|
||||
let payload = serde_json::json!({ "status": "ok" });
|
||||
let payload = serde_json::json!({ "status": "available" });
|
||||
Ok(HttpResponse::Ok().body(payload.to_string()))
|
||||
}
|
||||
|
@ -8,5 +8,5 @@ async fn test_healthyness() {
|
||||
|
||||
let (response, status_code) = server.get_health().await;
|
||||
assert_eq!(status_code, 200);
|
||||
assert_eq!(response["status"], "ok");
|
||||
assert_eq!(response["status"], "available");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user