mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-25 21:21:35 +00:00
publicRooms should accept POST as well as GET (#1991)
This commit is contained in:
parent
037ff4fb23
commit
2dd5fd1fd6
@ -449,7 +449,7 @@ func Setup(
|
|||||||
httputil.MakeExternalAPI("federation_public_rooms", func(req *http.Request) util.JSONResponse {
|
httputil.MakeExternalAPI("federation_public_rooms", func(req *http.Request) util.JSONResponse {
|
||||||
return GetPostPublicRooms(req, rsAPI)
|
return GetPostPublicRooms(req, rsAPI)
|
||||||
}),
|
}),
|
||||||
).Methods(http.MethodGet)
|
).Methods(http.MethodGet, http.MethodPost)
|
||||||
|
|
||||||
v1fedmux.Handle("/user/keys/claim", httputil.MakeFedAPI(
|
v1fedmux.Handle("/user/keys/claim", httputil.MakeFedAPI(
|
||||||
"federation_keys_claim", cfg.Matrix.ServerName, keys, wakeup,
|
"federation_keys_claim", cfg.Matrix.ServerName, keys, wakeup,
|
||||||
|
Loading…
Reference in New Issue
Block a user