bornhack-website/src/bornhack/routing.py

14 lines
349 B
Python
Raw Normal View History

from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
2018-04-03 18:52:39 +00:00
from django.conf.urls import url
2018-04-03 18:52:39 +00:00
from program.consumers import ScheduleConsumer
2019-06-16 12:32:24 +00:00
application = ProtocolTypeRouter(
{
"websocket": AuthMiddlewareStack(
URLRouter([url(r"^schedule/", ScheduleConsumer)])
)
}
)