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 /cmd/dendrite-polylith-multi | |
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 'cmd/dendrite-polylith-multi')
-rw-r--r-- | cmd/dendrite-polylith-multi/personalities/clientapi.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/dendrite-polylith-multi/personalities/clientapi.go b/cmd/dendrite-polylith-multi/personalities/clientapi.go index 1e509f88..7ed2075a 100644 --- a/cmd/dendrite-polylith-multi/personalities/clientapi.go +++ b/cmd/dendrite-polylith-multi/personalities/clientapi.go @@ -31,8 +31,10 @@ func ClientAPI(base *basepkg.BaseDendrite, cfg *config.Dendrite) { keyAPI := base.KeyServerHTTPClient() clientapi.AddPublicRoutes( - base.ProcessContext, base.PublicClientAPIMux, base.SynapseAdminMux, &base.Cfg.ClientAPI, - federation, rsAPI, asQuery, transactions.New(), fsAPI, userAPI, userAPI, + base.ProcessContext, base.PublicClientAPIMux, + base.SynapseAdminMux, base.DendriteAdminMux, + &base.Cfg.ClientAPI, federation, rsAPI, asQuery, + transactions.New(), fsAPI, userAPI, userAPI, keyAPI, nil, &cfg.MSCs, ) |