bornhack-website/src/bornhack/routing.py

15 lines
350 B
Python
Raw Normal View History

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