use axum::{routing::get, Json, Router};
use serde_json::{json, Value};
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") }))
}