diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2020-11-25 22:26:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 16:26:11 -0500 |
commit | 3f0ff53158cc07b481c701077357d9d09254845b (patch) | |
tree | bc1f6f4e6beff92b487e7c45585c4d0a4bfbae4c /synapse/rest/admin/groups.py | |
parent | Fix the formatting of push config section (#8818) (diff) | |
download | synapse-3f0ff53158cc07b481c701077357d9d09254845b.tar.xz |
Remove deprecated `/_matrix/client/*/admin` endpoints (#8785)
These are now only available via `/_synapse/admin/v1`.
Diffstat (limited to 'synapse/rest/admin/groups.py')
-rw-r--r-- | synapse/rest/admin/groups.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/synapse/rest/admin/groups.py b/synapse/rest/admin/groups.py index 0b54ca09f4..d0c86b204a 100644 --- a/synapse/rest/admin/groups.py +++ b/synapse/rest/admin/groups.py @@ -16,10 +16,7 @@ import logging from synapse.api.errors import SynapseError from synapse.http.servlet import RestServlet -from synapse.rest.admin._base import ( - assert_user_is_admin, - historical_admin_path_patterns, -) +from synapse.rest.admin._base import admin_patterns, assert_user_is_admin logger = logging.getLogger(__name__) @@ -28,7 +25,7 @@ class DeleteGroupAdminRestServlet(RestServlet): """Allows deleting of local groups """ - PATTERNS = historical_admin_path_patterns("/delete_group/(?P<group_id>[^/]*)") + PATTERNS = admin_patterns("/delete_group/(?P<group_id>[^/]*)") def __init__(self, hs): self.group_server = hs.get_groups_server_handler() |