Public room client API changes (#1368)

Signed-off-by: Rohit Mohan <rohitmohan96@gmail.com>
This commit is contained in:
Rohit Mohan 2020-09-01 14:56:34 +05:30 committed by GitHub
parent b0d2b39739
commit 3f9b829bc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 1 deletions

View file

@ -314,7 +314,7 @@ func Setup(
).Methods(http.MethodPut, http.MethodOptions)
r0mux.Handle("/publicRooms",
httputil.MakeExternalAPI("public_rooms", func(req *http.Request) util.JSONResponse {
return GetPostPublicRooms(req, rsAPI, stateAPI, extRoomsProvider)
return GetPostPublicRooms(req, rsAPI, stateAPI, extRoomsProvider, federation, cfg)
}),
).Methods(http.MethodGet, http.MethodPost, http.MethodOptions)