server: ws/mod.rs — WebSocket route /ws/{session_id}
This commit is contained in:
parent
94a992d72a
commit
e00fbf43ff
8
server/src/ws/mod.rs
Normal file
8
server/src/ws/mod.rs
Normal 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));
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user