decision_cockpit 0.1.0

Layer — product decision memory with MCP tools and an embedded review dashboard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use axum::extract::State;
use axum::Json;
use serde_json::Value;

use crate::error::AppResult;
use crate::services::graph as svc;
use crate::state::AppState;

pub async fn get_graph(State(state): State<AppState>) -> AppResult<Json<Value>> {
    let graph = svc::build_graph(&state.pool).await?;
    Ok(Json(serde_json::to_value(graph)?))
}