adk-gateway 1.0.0

Multi-channel AI gateway for adk-rust agents — Telegram, Slack, WhatsApp, Discord, Matrix + control panel
1
2
3
4
5
6
7
8
9
10
//! Dashboard JSON API handler.

use super::{ControlPanelState, DashboardData};
use std::sync::Arc;

pub(crate) async fn dashboard_json(
    axum::extract::State(state): axum::extract::State<Arc<ControlPanelState>>,
) -> axum::Json<DashboardData> {
    axum::Json(state.dashboard())
}