diff options
author | Richard van der Hoff <github@rvanderhoff.org.uk> | 2017-10-26 16:10:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-26 16:10:43 +0100 |
commit | 1dd0f53b21e8c97f962449cbf21a932c22e5d878 (patch) | |
tree | 14deba320db66416619ca489b1906d2675149cbc /synapse/rest/client/v2_alpha/devices.py | |
parent | Merge pull request #2578 from matrix-org/rav/code_style_imports (diff) | |
parent | add release endpoints for /thirdparty (diff) | |
download | synapse-1dd0f53b21e8c97f962449cbf21a932c22e5d878.tar.xz |
Merge pull request #2579 from krombel/move_unstable_to_r0
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): """ |