Function ws_module_routes

Source
pub fn ws_module_routes(app_state: AppState) -> Router<AppState>
Expand description

Builds the /api/ws/modules WebSocket router.

§Routes

  • /api/ws/modules/{module_id}/announcements (guarded by require_assigned_to_module)
  • /api/ws/modules/assignments/...

§Guards

  • require_assigned_to_module ensures only users assigned to the module can subscribe to its announcement topic