mirror of https://github.com/openspug/spug
15 lines
460 B
Python
15 lines
460 B
Python
# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
|
|
# Copyright: (c) <spug.dev@gmail.com>
|
|
# Released under the MIT License.
|
|
from channels.routing import ProtocolTypeRouter, ChannelNameRouter, URLRouter
|
|
from consumer import routing, executors
|
|
|
|
application = ProtocolTypeRouter({
|
|
'channel': ChannelNameRouter({
|
|
'ssh_exec': executors.SSHExecutor,
|
|
}),
|
|
'websocket': URLRouter(
|
|
routing.websocket_urlpatterns
|
|
)
|
|
})
|