use axum::{Json, Router, routing::get};
use serde_json::{Value, json};
use crate::AppState;
pub fn routes() -> Router<AppState> {
Router::new().route("/health", get(health_check))
}
async fn health_check() -> Json<Value> {
Json(json!({ "status": "ok", "version": env!("CARGO_PKG_VERSION") }))
}