diff options
author | Krombel <krombel@krombel.de> | 2017-10-26 15:22:50 +0200 |
---|---|---|
committer | Krombel <krombel@krombel.de> | 2017-10-26 15:22:50 +0200 |
commit | 9b436c8b4ce0967c47da117d12f6b406f08d3172 (patch) | |
tree | 097c22a917d9efbd98682a9e37c56843de4b51f4 /synapse/rest/client/v2_alpha/devices.py | |
parent | Merge pull request #2578 from matrix-org/rav/code_style_imports (diff) | |
download | synapse-9b436c8b4ce0967c47da117d12f6b406f08d3172.tar.xz |
register some /unstable endpoints in /r0 as well
Diffstat (limited to 'synapse/rest/client/v2_alpha/devices.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/devices.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/devices.py b/synapse/rest/client/v2_alpha/devices.py index b57ba95d24..2a2438b7dc 100644 --- a/synapse/rest/client/v2_alpha/devices.py +++ b/synapse/rest/client/v2_alpha/devices.py @@ -25,7 +25,7 @@ logger = logging.getLogger(__name__) class DevicesRestServlet(servlet.RestServlet): - PATTERNS = client_v2_patterns("/devices$", releases=[], v2_alpha=False) + PATTERNS = client_v2_patterns("/devices$", v2_alpha=False) def __init__(self, hs): """ @@ -51,7 +51,7 @@ class DeleteDevicesRestServlet(servlet.RestServlet): API for bulk deletion of devices. Accepts a JSON object with a devices key which lists the device_ids to delete. Requires user interactive auth. """ - PATTERNS = client_v2_patterns("/delete_devices", releases=[], v2_alpha=False) + PATTERNS = client_v2_patterns("/delete_devices", v2_alpha=False) def __init__(self, hs): super(DeleteDevicesRestServlet, self).__init__() @@ -93,8 +93,7 @@ class DeleteDevicesRestServlet(servlet.RestServlet): class DeviceRestServlet(servlet.RestServlet): - PATTERNS = client_v2_patterns("/devices/(?P<device_id>[^/]*)$", - releases=[], v2_alpha=False) + PATTERNS = client_v2_patterns("/devices/(?P<device_id>[^/]*)$", v2_alpha=False) def __init__(self, hs): """ |