anya-core 1.2.0

Enterprise-grade Bitcoin Infrastructure Platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// System handlers
use axum::{http::StatusCode, response::Json};
use serde_json::{json, Value};

pub async fn health_check() -> Result<Json<Value>, StatusCode> {
    Ok(Json(json!({
        "status": "healthy",
        "timestamp": chrono::Utc::now()
    })))
}

pub async fn system_info() -> Result<Json<Value>, StatusCode> {
    Ok(Json(json!({
        "name": "Anya Core",
        "version": "1.1.0",
        "status": "operational"
    })))
}