summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2021-10-08 18:35:00 -0500
committerGitHub <noreply@github.com>2021-10-08 18:35:00 -0500
commita7d22c36dbbbdd396aeb8938b57b5fd7edb689f3 (patch)
tree9ed85aacdb70bd64e8d8ff95c9bb5be568914ab8 /synapse/server.py
parentAutodiscover oEmbed endpoint from returned HTML (#10822) (diff)
downloadsynapse-a7d22c36dbbbdd396aeb8938b57b5fd7edb689f3.tar.xz
Refactor MSC2716 `/batch_send` endpoint into separate handler functions (#10974)
Diffstat (limited to '')
-rw-r--r--synapse/server.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py
index 0783df41d4..5bc045d615 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -97,6 +97,7 @@ from synapse.handlers.room import (
     RoomCreationHandler,
     RoomShutdownHandler,
 )
+from synapse.handlers.room_batch import RoomBatchHandler
 from synapse.handlers.room_list import RoomListHandler
 from synapse.handlers.room_member import RoomMemberHandler, RoomMemberMasterHandler
 from synapse.handlers.room_member_worker import RoomMemberWorkerHandler
@@ -438,6 +439,10 @@ class HomeServer(metaclass=abc.ABCMeta):
         return RoomCreationHandler(self)
 
     @cache_in_self
+    def get_room_batch_handler(self) -> RoomBatchHandler:
+        return RoomBatchHandler(self)
+
+    @cache_in_self
     def get_room_shutdown_handler(self) -> RoomShutdownHandler:
         return RoomShutdownHandler(self)