mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-11 00:31:34 +00:00
16 lines
415 B
Python
16 lines
415 B
Python
from channels.auth import AuthMiddlewareStack
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
|
|
import chat.routing
|
|
|
|
application = ProtocolTypeRouter(
|
|
{
|
|
"websocket": AuthMiddlewareStack(
|
|
URLRouter(
|
|
chat.routing.websocket_urlpatterns,
|
|
# TODO add api.routing.websocket_urlpatterns when Order page works with websocket
|
|
)
|
|
),
|
|
}
|
|
)
|