mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-06-10 14:49:51 +02:00
12 lines
318 B
Rust
12 lines
318 B
Rust
use actix_web::{web, HttpResponse};
|
|
|
|
use crate::error::ResponseError;
|
|
|
|
pub fn services(cfg: &mut web::ServiceConfig) {
|
|
cfg.route("/health", web::get().to(get_health));
|
|
}
|
|
|
|
async fn get_health() -> Result<HttpResponse, ResponseError> {
|
|
Ok(HttpResponse::Ok().json(serde_json::json!({ "status": "available" })))
|
|
}
|