server: ws/mod.rs — WebSocket route /ws/{session_id}

This commit is contained in:
Butterfly Dev 2026-04-07 03:09:51 +00:00
parent 94a992d72a
commit e00fbf43ff

8
server/src/ws/mod.rs Normal file
View File

@ -0,0 +1,8 @@
pub mod handler;
use actix_web::web;
/// Configure the WebSocket route.
pub fn configure(cfg: &mut web::ServiceConfig) {
cfg.route("/ws/{session_id}", web::get().to(handler::ws_index));
}