diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-04-28 16:02:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 16:02:30 +0100 |
commit | c6ea2c9ff26ca6ae4c799db08a3f72c6b4d99256 (patch) | |
tree | bf7c7f0a18b6a42089500cbf76e04fa3109a9254 /roomserver/api/perform.go | |
parent | 21ee5b36a41f2cb3960f63ef6f19106d36312aae (diff) |
Add `/_dendrite/admin/evacuateRoom/{roomID}` (#2401)
* Add new endpoint to allow admins to evacuate the local server from the room
* Guard endpoint
* Use right prefix
* Auth API
* More useful return error rather than a panic
* More useful return value again
* Update the path
* Try using inputer instead
* oh provide the config
* Try that again
* Return affected user IDs
* Don't create so many forward extremities
* Add missing `Path` to name
Co-authored-by: Till <2353100+S7evinK@users.noreply.github.com>
Diffstat (limited to 'roomserver/api/perform.go')
-rw-r--r-- | roomserver/api/perform.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roomserver/api/perform.go b/roomserver/api/perform.go index cda4b3ee..30aa2cf1 100644 --- a/roomserver/api/perform.go +++ b/roomserver/api/perform.go @@ -214,3 +214,12 @@ type PerformRoomUpgradeResponse struct { NewRoomID string Error *PerformError } + +type PerformAdminEvacuateRoomRequest struct { + RoomID string `json:"room_id"` +} + +type PerformAdminEvacuateRoomResponse struct { + Affected []string `json:"affected"` + Error *PerformError +} |