aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/atuin_server/handlers/health.rs
blob: d39f7aa56f9cbcaff1ab9cc950332d44ed63fe2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use axum::{Json, http, response::IntoResponse};

use serde::Serialize;

#[derive(Serialize)]
pub(crate) struct HealthResponse {
    pub(crate) status: &'static str,
}

pub(crate) async fn health_check() -> impl IntoResponse {
    (
        http::StatusCode::OK,
        Json(HealthResponse { status: "healthy" }),
    )
}