use std::sync::Arc;
use axum::{
extract::State,
response::IntoResponse,
Json,
};
use serde_json::json;
use crate::http::state::AppState;
pub async fn healthz(State(state): State<Arc<AppState>>) -> impl IntoResponse {
Json(json!({
"status": "ok",
"serverId": state.server_id.to_string(),
}))
}