athena_rs 0.82.2

Database gateway API
Documentation
//! Health check endpoints for Athena RS.
//!
//! This module provides endpoints to verify the service is running and healthy.

use actix_web::{HttpResponse, get};

/// Health check endpoint that returns a simple pong response.
///
/// Used by load balancers, orchestrators, and monitoring systems to verify
/// that the Athena RS service is running and responding to requests.
///
/// # Returns
///
/// Returns HTTP 200 with plain text body "pong"
#[get("/ping")]
pub async fn ping() -> HttpResponse {
    HttpResponse::Ok()
        .content_type("text/plain; charset=utf-8")
        .body("pong")
}