Proxy v2 (#189)
This commit is contained in:
		
							
								
								
									
										12
									
								
								passbook/root/routing.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								passbook/root/routing.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,12 @@
 | 
			
		||||
"""root Websocket URLS"""
 | 
			
		||||
from channels.routing import ProtocolTypeRouter, URLRouter
 | 
			
		||||
from django.urls import path
 | 
			
		||||
 | 
			
		||||
from passbook.outposts.channels import OutpostConsumer
 | 
			
		||||
 | 
			
		||||
application = ProtocolTypeRouter(
 | 
			
		||||
    {
 | 
			
		||||
        # (http->django views is added by default)
 | 
			
		||||
        "websocket": URLRouter([path("ws/outpost/<uuid:pk>/", OutpostConsumer)]),
 | 
			
		||||
    }
 | 
			
		||||
)
 | 
			
		||||
		Reference in New Issue
	
	Block a user