greentic-flow-builder 0.1.0

AI-powered Adaptive Card flow builder with visual graph editor and demo runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Primitive manifest endpoint for the compose escape hatch.

use crate::ui::state::AppState;
use axum::Json;
use axum::extract::State;
use serde_json::{Value, json};
use std::sync::Arc;

pub async fn list_primitives(State(state): State<Arc<AppState>>) -> Json<Value> {
    Json(json!(state.registry.primitives_manifest))
}