diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-03-18 18:24:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 18:24:16 +0000 |
commit | 004234f03abad58b2de28abff406391a6d182e48 (patch) | |
tree | 478881df270c2b6e032c71429beaf5047b96e89d /synapse/server.py | |
parent | Consistently check whether a password may be set for a user. (#9636) (diff) | |
download | synapse-004234f03abad58b2de28abff406391a6d182e48.tar.xz |
Initial spaces summary API (#9643)
This is very bare-bones for now: federation will come soon, while pagination is descoped for now but will come later.
Diffstat (limited to '')
-rw-r--r-- | synapse/server.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index d11d08c573..98822d8e2f 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -100,6 +100,7 @@ from synapse.handlers.room_member import RoomMemberHandler, RoomMemberMasterHand from synapse.handlers.room_member_worker import RoomMemberWorkerHandler from synapse.handlers.search import SearchHandler from synapse.handlers.set_password import SetPasswordHandler +from synapse.handlers.space_summary import SpaceSummaryHandler from synapse.handlers.sso import SsoHandler from synapse.handlers.stats import StatsHandler from synapse.handlers.sync import SyncHandler @@ -733,6 +734,10 @@ class HomeServer(metaclass=abc.ABCMeta): return AccountDataHandler(self) @cache_in_self + def get_space_summary_handler(self) -> SpaceSummaryHandler: + return SpaceSummaryHandler(self) + + @cache_in_self def get_external_cache(self) -> ExternalCache: return ExternalCache(self) |