mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-25 04:50:26 -04:00
Remove deprecated /_matrix/client/*/admin
endpoints (#8785)
These are now only available via `/_synapse/admin/v1`.
This commit is contained in:
parent
2b110dda2a
commit
3f0ff53158
16 changed files with 176 additions and 68 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue