mirror of https://github.com/openspug/spug
15 lines
451 B
Python
15 lines
451 B
Python
# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
|
|
# Copyright: (c) <spug.dev@gmail.com>
|
|
# Released under the AGPL-3.0 License.
|
|
from django.urls import path
|
|
from channels.routing import URLRouter
|
|
from consumer.middleware import AuthMiddleware
|
|
from consumer.consumers import *
|
|
|
|
ws_router = AuthMiddleware(
|
|
URLRouter([
|
|
path('ws/exec/<str:token>/', ExecConsumer),
|
|
path('ws/ssh/<int:id>/', SSHConsumer),
|
|
])
|
|
)
|