html-over-websockets-with-d.../app/website/routing.py

9 lines
209 B
Python
Raw Normal View History

2021-11-12 18:59:01 +01:00
from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
2021-11-13 09:07:55 +01:00
re_path(r"ws/pages/(?P<room_id>\w+)/$", consumers.WebsiteConsumer),
2021-11-23 21:41:52 +01:00
re_path(r"ws/chat/$", consumers.ChatConsumer),
2021-11-13 09:07:55 +01:00
]