diff options
Diffstat (limited to 'chat/routing.py')
| -rw-r--r-- | chat/routing.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chat/routing.py b/chat/routing.py new file mode 100644 index 0000000..9f08ddf --- /dev/null +++ b/chat/routing.py | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | from django.urls import re_path | ||
| 2 | |||
| 3 | from . import consumers | ||
| 4 | |||
| 5 | websocket_urlpatterns = [ | ||
| 6 | re_path(r"ws/chat/(?P<room_name>\w+)/$", consumers.ChatConsumer.as_asgi()), | ||
| 7 | ] | ||
