Server-Server API: Add query clients_keys

This commit is contained in:
Vincent Glize 2018-02-13 21:08:34 +01:00
parent 08274bab5a
commit cfa49ab940
No known key found for this signature in database
GPG key ID: DD3B1180ECD4C41D

View file

@ -115,6 +115,13 @@ func Setup(
}, },
)).Methods("GET") )).Methods("GET")
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( v1fedmux.Handle("/query/profile", common.MakeFedAPI(
"federation_query_profile", cfg.Matrix.ServerName, keys, "federation_query_profile", cfg.Matrix.ServerName, keys,
func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse { func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse {