From 53a726fab100026d529b4e9f9392ad307b47c3f8 Mon Sep 17 00:00:00 2001 From: Anant Prakash Date: Wed, 25 Jul 2018 18:28:10 +0530 Subject: [PATCH] Correct user/devices path (#557) --- .../matrix-org/dendrite/federationapi/routing/routing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 e3215f63..b04a270a 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go @@ -148,8 +148,8 @@ func Setup( }, )).Methods(http.MethodGet) - v1fedmux.Handle("/query/user_devices/{userID}", common.MakeFedAPI( - "federation_query_user_devices", cfg.Matrix.ServerName, keys, + v1fedmux.Handle("/user/devices/{userID}", common.MakeFedAPI( + "federation_user_devices", cfg.Matrix.ServerName, keys, func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse { vars := mux.Vars(httpReq) return GetUserDevices(