Skip to content

Commit

Permalink
Merge pull request #276 from lsst-ts/tickets/DM-45849
Browse files Browse the repository at this point in the history
Adjust websockets routing as prefix is not needed anymore
  • Loading branch information
sebastian-aranda authored Aug 19, 2024
2 parents ec4273c + d3839f0 commit 2f4688b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Version History
===============

v7.0.1
------

* Adjust websockets routing as prefix is not needed anymore `<https://github.com/lsst-ts/LOVE-manager/pull/276>`_

v7.0.0
------

Expand Down
5 changes: 1 addition & 4 deletions manager/subscription/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@

"""Define the rules for routing
of channels messages (websockets) in the subscription application."""
from django.conf import settings
from django.urls import re_path

from .consumers import SubscriptionConsumer

URL_PREFIX = settings.FORCE_SCRIPT_NAME[1:] + "/" if settings.FORCE_SCRIPT_NAME else ""

websocket_urlpatterns = [
re_path(
rf"^{URL_PREFIX}manager(.*?)/ws/subscription/?$",
r"^manager(.*?)/ws/subscription/?$",
SubscriptionConsumer.as_asgi(),
),
]
Expand Down

0 comments on commit 2f4688b

Please sign in to comment.