mirror of
https://github.com/neogeek23/drawshare.git
synced 2026-02-04 02:58:16 +00:00
13 lines
376 B
Python
13 lines
376 B
Python
|
|
# ChannelsDrawShareSite/routing.py
|
||
|
|
from channels.auth import AuthMiddlewareStack
|
||
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
||
|
|
import drawshare.routing
|
||
|
|
|
||
|
|
application = ProtocolTypeRouter({
|
||
|
|
# (http->django views is added by default)
|
||
|
|
'websocket': AuthMiddlewareStack(
|
||
|
|
URLRouter(
|
||
|
|
drawshare.routing.websocket_urlpatterns
|
||
|
|
)
|
||
|
|
),
|
||
|
|
})
|