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))
}