gestioCOF/gestioasso/routing.py

21 lines
515 B
Python
Raw Normal View History

2022-06-27 15:34:24 +02:00
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
2022-06-29 11:09:34 +02:00
from django.core.asgi import get_asgi_application
2022-06-27 15:34:24 +02:00
from django.urls import path
2022-06-27 15:34:24 +02:00
from kfet.routing import KFRouter
application = ProtocolTypeRouter(
{
# WebSocket chat handler
"websocket": AuthMiddlewareStack(
URLRouter(
[
path("ws/k-fet", KFRouter),
]
)
),
2022-06-29 11:09:34 +02:00
"http": get_asgi_application(),
2022-06-27 15:34:24 +02:00
}
)