mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 18:45:06 +08:00
14 lines
297 B
Rust
14 lines
297 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::NoContent().finish())
|
|
}
|