parent
02a8ed8730
commit
93e521aca0
@ -0,0 +1,16 @@ |
||||
from channels.http import AsgiHandler |
||||
from channels.routing import ProtocolTypeRouter, URLRouter |
||||
|
||||
from django.conf.urls import url |
||||
|
||||
from . import views |
||||
|
||||
application = ProtocolTypeRouter({ |
||||
"http": URLRouter([ |
||||
url(r'^(?P<access_code>[a-zA-Z]{6})/', URLRouter([ |
||||
url(r"status/(?P<hashcode>[a-z0-9]{64})/", |
||||
views.StatusLongPollConsumer, name='status'), |
||||
])), |
||||
url(r"", AsgiHandler), |
||||
]), |
||||
}) |
@ -1,4 +1,3 @@ |
||||
from channels.routing import ProtocolTypeRouter |
||||
import fear_tracker.routing |
||||
|
||||
# No async routing currently; just default sync http. |
||||
application = ProtocolTypeRouter({}) |
||||
application = fear_tracker.routing.application |
||||
|
Loading…
Reference in new issue