Skip to main content

handle_api_channels

Function handle_api_channels 

Source
pub async fn handle_api_channels(
    __arg0: State<AppState>,
    headers: HeaderMap,
) -> impl IntoResponse
Expand description

GET /api/channels — returns detailed channel information for the dashboard.

Iterates over configured channels and returns name, type, enabled status, plus sensible defaults for runtime fields we don’t yet track (message_count, last_message_at, etc.).