mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-28 02:31:56 -05:00
Support fetching the spaces summary via GET over federation. (#9947)
Per changes in MSC2946, the C-S and S-S APIs for spaces summary should use GET requests. Until this is stable, the POST endpoints still exist. This does not switch federation requests to use the GET version yet since it is newly added and already deployed servers might not support it. When switching to the stable endpoint we should switch to GET requests.
This commit is contained in:
parent
28c6841102
commit
f4833e0c06
4 changed files with 29 additions and 0 deletions
|
|
@ -1020,6 +1020,7 @@ class RoomSpaceSummaryRestServlet(RestServlet):
|
|||
max_rooms_per_space=parse_integer(request, "max_rooms_per_space"),
|
||||
)
|
||||
|
||||
# TODO When switching to the stable endpoint, remove the POST handler.
|
||||
async def on_POST(
|
||||
self, request: SynapseRequest, room_id: str
|
||||
) -> Tuple[int, JsonDict]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue