mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 17:39:17 +02:00

This reduces coverage since one test case needed to be removed. Its not that easy anymore to pass a custom scope into a tested application. It gets verified that no invalid authentication is possible though. Proper testing should be done with another issue.
16 lines
476 B
Python
16 lines
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())]
|
|
)
|
|
)
|
|
}
|
|
)
|