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

use serde::Serialize;

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

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