spug/spug_api/spug/routing.py

10 lines
301 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 channels.routing import ProtocolTypeRouter
from consumer import routing
application = ProtocolTypeRouter({
'websocket': routing.ws_router
})