mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 04:24:56 -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
|
@ -29,7 +29,6 @@ from synapse.rest.admin._base import (
|
|||
admin_patterns,
|
||||
assert_requester_is_admin,
|
||||
assert_user_is_admin,
|
||||
historical_admin_path_patterns,
|
||||
)
|
||||
from synapse.storage.databases.main.room import RoomSortOrder
|
||||
from synapse.types import RoomAlias, RoomID, UserID, create_requester
|
||||
|
@ -44,7 +43,7 @@ class ShutdownRoomRestServlet(RestServlet):
|
|||
joined to the new room.
|
||||
"""
|
||||
|
||||
PATTERNS = historical_admin_path_patterns("/shutdown_room/(?P<room_id>[^/]+)")
|
||||
PATTERNS = admin_patterns("/shutdown_room/(?P<room_id>[^/]+)")
|
||||
|
||||
def __init__(self, hs):
|
||||
self.hs = hs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue