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