From cfa49ab94019d40748943ff2e2934945d84b5497 Mon Sep 17 00:00:00 2001 From: Vincent Glize Date: Tue, 13 Feb 2018 21:08:34 +0100 Subject: [PATCH] Server-Server API: Add query clients_keys --- .../matrix-org/dendrite/federationapi/routing/routing.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go b/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go index a1e2dc2ea..889e3385d 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go @@ -115,6 +115,13 @@ func Setup( }, )).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( "federation_query_profile", cfg.Matrix.ServerName, keys, func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse {