kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
17 wiersze
476 B
Python
17 wiersze
476 B
Python
from channels.auth import AuthMiddlewareStack
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
|
|
from django.conf.urls import url
|
|
from funkwhale_api.instance import consumers
|
|
|
|
application = ProtocolTypeRouter(
|
|
{
|
|
# Empty for now (http->django views is added by default)
|
|
"websocket": AuthMiddlewareStack(
|
|
URLRouter(
|
|
[url("^api/v1/activity$", consumers.InstanceActivityConsumer.as_asgi())]
|
|
)
|
|
)
|
|
}
|
|
)
|