use axum::{
    routing::get,
    Router,
    Json,
    extract::State,
};
use std::sync::Arc;
use crate::state::AppState;
use serde_json::json;

pub fn create_router(state: Arc<AppState>) -> Router {
    Router::new()
        .route("/health", get(health_check))
        .with_state(state)
}

async fn health_check(State(_state): State<Arc<AppState>>) -> Json<serde_json::Value> {
    Json(json!({
        "status": "ok",
        "service": "workflow-orchestrator"
    }))
}

