Skip to content

Commit 7c3325d

Browse files
committed
renamed services to rtc_services in the endpoint return object
1 parent 64f7667 commit 7c3325d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

synapse/rest/client/matrixrtc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def on_GET(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
5050
services = self.hs.config.matrix_rtc.services
5151

5252
if services:
53-
return 200, {"services": services}
53+
return 200, {"rtc_services": services}
5454
else:
5555
return 200, {}
5656

tests/rest/client/test_matrixrtc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ def test_matrixrtc_endpoints(self) -> None:
5151
channel = self.make_request("GET", f"{PATH_PREFIX}/rtc/services", access_token=tok)
5252
self.assertEqual(200, channel.code)
5353

54-
self.assert_dict({"services": [RTC_ENDPOINT]}, channel.json_body)
54+
self.assert_dict({"rtc_services": [RTC_ENDPOINT]}, channel.json_body)
5555

0 commit comments

Comments
 (0)