sevensense-api 0.1.0

REST, GraphQL, and WebSocket API server for 7sense bioacoustics platform
//! WebSocket module for real-time updates.
//!
//! This module provides WebSocket endpoints for:
//! - Real-time processing status updates
//! - Live cluster updates
//! - Streaming search results

pub mod handlers;

use axum::{routing::get, Router};

use crate::AppContext;

/// Create the WebSocket router.
#[must_use]
pub fn create_router(_ctx: AppContext) -> Router<AppContext> {
    Router::new()
        // Recording status updates
        .route("/recordings/:id", get(handlers::recording_status_ws))
        // All events stream (admin)
        .route("/events", get(handlers::events_ws))
}