openserve 2.0.3

A modern, high-performance, AI-enhanced file server built in Rust
Documentation
//! Health check handler

use axum::{
    extract::State,
    response::IntoResponse,
    Json,
};
use serde_json::json;

use crate::server::AppState;

/// Health check endpoint
pub async fn health_check(State(_state): State<AppState>) -> impl IntoResponse {
    Json(json!({
        "status": "healthy",
        "version": env!("CARGO_PKG_VERSION"),
        "timestamp": chrono::Utc::now(),
        "services": {
            "file_service": "healthy",
            "search_service": "healthy",
            "ai_service": "healthy"
        }
    }))
}