use axum::{
extract::State,
response::IntoResponse,
Json,
};
use serde_json::json;
use crate::server::AppState;
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"
}
}))
}