"""
WebSocket URL routing for the schedule app.
"""
from django.urls import re_path

from . import consumers

websocket_urlpatterns = [
    # Calendar updates for web and mobile apps
    re_path(r"^/?ws/calendar/?$", consumers.CalendarConsumer.as_asgi()),
    # Resource location tracking for web dashboard
    re_path(r"^/?ws/resource-location/(?P<resource_id>\d+)/?$", consumers.ResourceLocationConsumer.as_asgi()),
]
