gestioCOF/gestioasso/routing.py

21 lines
492 B
Python
Raw Normal View History

2022-06-27 15:34:24 +02:00
from channels.auth import AuthMiddlewareStack
2022-06-28 15:58:46 +02:00
from channels.http import AsgiHandler
2022-06-27 15:34:24 +02:00
from channels.routing import ProtocolTypeRouter, URLRouter
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-28 15:58:46 +02:00
"http": AsgiHandler,
2022-06-27 15:34:24 +02:00
}
)