//! Axum route mounting helper for WebSocket gateway upgrades.

use std::sync::Arc;

use axum::Router;

use crate::hub::WsGateway;

/// Attaches WebSocket upgrade routes from `gateway` onto `router`.
pub fn mount_upgrade_routes(router: Router<()>, gateway: Arc<dyn WsGateway>) -> Router<()> {
    gateway.mount_routes(router)
}
