akarpov/config/routing.py

10 lines
313 B
Python
Raw Normal View History

2023-07-10 03:13:42 +03:00
from django.urls import re_path
from akarpov.music.consumers import RadioConsumer
from akarpov.notifications.providers.site.consumers import NotificationsConsumer
2023-07-10 03:13:42 +03:00
websocket_urlpatterns = [
re_path(r"ws/radio/", RadioConsumer.as_asgi()),
re_path(r"ws/notifications/", NotificationsConsumer.as_asgi()),
2023-07-10 03:13:42 +03:00
]