mirror of
https://github.com/deunix-educ/Fail2banMqttActionBanishment.git
synced 2026-08-24 03:11:58 +02:00
13 lines
554 B
Python
13 lines
554 B
Python
from django.urls import re_path
|
|
|
|
from . import consumers
|
|
|
|
websocket_urlpatterns = [
|
|
# re_path() réutilisé pour du routage ASGI (pattern documenté par
|
|
# Channels lui-même) — django-stubs type `view` pour des vues WSGI,
|
|
# pas des consumers ASGI : décalage entre les stubs des deux paquets,
|
|
# sans rapport avec un vrai bug (fonctionne, testé en conditions
|
|
# réelles toute la journée, cf. ROADMAP.md).
|
|
re_path(r'^ws/banevents/$', consumers.BanEventConsumer.as_asgi()), # type: ignore[reportCallIssue, reportArgumentType]
|
|
]
|