diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2021-08-27 15:48:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-27 15:48:27 +0100 |
commit | 2dd5fd1fd676c570a13c2ed062fa47a026ca826f (patch) | |
tree | 08016ee3d5a6974d0e54ff278a81c1c31dd804c2 /federationapi/routing | |
parent | 037ff4fb2364cbee7a3a9a856cd2a711f5398682 (diff) |
publicRooms should accept POST as well as GET (#1991)
Diffstat (limited to 'federationapi/routing')
-rw-r--r-- | federationapi/routing/routing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/routing/routing.go b/federationapi/routing/routing.go index 8f33c766..503e512e 100644 --- a/federationapi/routing/routing.go +++ b/federationapi/routing/routing.go @@ -449,7 +449,7 @@ func Setup( httputil.MakeExternalAPI("federation_public_rooms", func(req *http.Request) util.JSONResponse { return GetPostPublicRooms(req, rsAPI) }), - ).Methods(http.MethodGet) + ).Methods(http.MethodGet, http.MethodPost) v1fedmux.Handle("/user/keys/claim", httputil.MakeFedAPI( "federation_keys_claim", cfg.Matrix.ServerName, keys, wakeup, |