NDOJ/dmoj/routing.py

14 lines
343 B
Python
Raw Normal View History

2020-01-27 20:37:52 +00:00
import chat_box.routing
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
application = ProtocolTypeRouter({
# (http->django views is added by default)
'websocket': AuthMiddlewareStack(
URLRouter(
chat_box.routing.websocket_urlpatterns,
),
),
})