diff options
Diffstat (limited to 'crates/atuin-server/src/handlers/health.rs')
| -rw-r--r-- | crates/atuin-server/src/handlers/health.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/atuin-server/src/handlers/health.rs b/crates/atuin-server/src/handlers/health.rs new file mode 100644 index 00000000..1a3fc4d7 --- /dev/null +++ b/crates/atuin-server/src/handlers/health.rs @@ -0,0 +1,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" }), + ) +} |
