mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2026-02-04 03:30:26 +01:00
9 lines
266 B
Python
9 lines
266 B
Python
# /pong/game/routing.py
|
|
from django.urls import re_path
|
|
from . import consumers
|
|
|
|
websocket_urlpatterns = [
|
|
re_path(r'ws/game/$', consumers.GameConsumer.as_asgi(), name='game_ws'),
|
|
re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
|
|
]
|