mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-07-01 00:32:56 +02:00
14 lines
332 B
Rust
14 lines
332 B
Rust
use actix_web::get;
|
|
use actix_web::{web, HttpResponse};
|
|
|
|
use crate::error::ResponseError;
|
|
|
|
pub fn services(cfg: &mut web::ServiceConfig) {
|
|
cfg.service(get_health);
|
|
}
|
|
|
|
#[get("/health")]
|
|
async fn get_health() -> Result<HttpResponse, ResponseError> {
|
|
Ok(HttpResponse::Ok().json(serde_json::json!({ "status": "available" })))
|
|
}
|