summary refs log tree commit diff
path: root/synapse/rest/client/room.py
diff options
context:
space:
mode:
authorAndrew Ferrazzutti <andrewf@element.io>2024-04-26 17:46:42 +0900
committerGitHub <noreply@github.com>2024-04-26 09:46:42 +0100
commit516fd891eeb3cade255298a2239ca607bfbec16a (patch)
tree1c569f9f7830e9fd183317287aa1d3efa3cb48f9 /synapse/rest/client/room.py
parentUpdate event_cache_size and global_factor configurations documentation (#17071) (diff)
downloadsynapse-516fd891eeb3cade255298a2239ca607bfbec16a.tar.xz
Use recommended endpoint for MSC3266 requests (#17078)
Keep the existing endpoint for backwards compatibility

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
Diffstat (limited to '')
-rw-r--r--synapse/rest/client/room.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py
index e4c7dd1a58..fb4d44211e 100644
--- a/synapse/rest/client/room.py
+++ b/synapse/rest/client/room.py
@@ -1442,10 +1442,16 @@ class RoomHierarchyRestServlet(RestServlet):
 
 class RoomSummaryRestServlet(ResolveRoomIdMixin, RestServlet):
     PATTERNS = (
+        # deprecated endpoint, to be removed
         re.compile(
             "^/_matrix/client/unstable/im.nheko.summary"
             "/rooms/(?P<room_identifier>[^/]*)/summary$"
         ),
+        # recommended endpoint
+        re.compile(
+            "^/_matrix/client/unstable/im.nheko.summary"
+            "/summary/(?P<room_identifier>[^/]*)$"
+        ),
     )
     CATEGORY = "Client API requests"