20 lines
624 B
Python
20 lines
624 B
Python
"""
|
|
Main WebSocket routing configuration for hospital management system.
|
|
|
|
Aggregates WebSocket URL patterns from all apps.
|
|
"""
|
|
|
|
from channels.routing import URLRouter
|
|
from appointments.routing import websocket_urlpatterns as appointments_ws_patterns
|
|
|
|
# Combine all WebSocket URL patterns from different apps
|
|
websocket_urlpatterns = []
|
|
|
|
# Add appointments WebSocket patterns
|
|
websocket_urlpatterns.extend(appointments_ws_patterns)
|
|
|
|
# Add other app WebSocket patterns here as needed
|
|
# Example:
|
|
# from other_app.routing import websocket_urlpatterns as other_app_ws_patterns
|
|
# websocket_urlpatterns.extend(other_app_ws_patterns)
|