Titivillus/titivillus/routing.py

17 lines
327 B
Python
Raw Normal View History

2018-08-14 20:12:52 -04:00
#!/usr/bin/env python3
"""
Routing for Channels (websockets).
"""
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
import quest.routing
application = ProtocolTypeRouter({
'websocket': AuthMiddlewareStack(
URLRouter(
quest.routing.websocket_urlpatterns
)
),
})