This commit is contained in:
Vincent Glize 2018-04-10 12:22:15 +00:00 committed by GitHub
commit 00e7c716ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,6 +115,13 @@ func Setup(
},
)).Methods(http.MethodGet)
v1fedmux.Handle("/query/client_keys", common.MakeFedAPI(
"federation_query_client_keys", cfg.Matrix.ServerName, keys,
func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse {
return LocalKeys(cfg)
},
)).Methods("GET")
v1fedmux.Handle("/query/profile", common.MakeFedAPI(
"federation_query_profile", cfg.Matrix.ServerName, keys,
func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse {