mirror of https://github.com/jumpserver/jumpserver
14 lines
330 B
Python
14 lines
330 B
Python
from channels.auth import AuthMiddlewareStack
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
|
|
from ops.urls.ws_urls import urlpatterns as ops_urlpatterns
|
|
|
|
urlpatterns = []
|
|
urlpatterns += ops_urlpatterns
|
|
|
|
application = ProtocolTypeRouter({
|
|
'websocket': AuthMiddlewareStack(
|
|
URLRouter(urlpatterns)
|
|
),
|
|
})
|