mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 06:29:18 +02:00
14 lines
448 B
Python
14 lines
448 B
Python
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
from django.conf.urls import url
|
|
|
|
from funkwhale_api.common.auth import TokenAuthMiddleware
|
|
from funkwhale_api.instance import consumers
|
|
|
|
application = ProtocolTypeRouter(
|
|
{
|
|
# Empty for now (http->django views is added by default)
|
|
"websocket": TokenAuthMiddleware(
|
|
URLRouter([url("^api/v1/activity$", consumers.InstanceActivityConsumer)])
|
|
)
|
|
}
|
|
)
|