From fcf6ee11f32c62a349eade79d8478d76c7878b92 Mon Sep 17 00:00:00 2001 From: Ross Schulman Date: Mon, 20 Nov 2017 09:23:47 -0500 Subject: [PATCH] Delete extra copy of directory route --- .../dendrite/federationapi/routing/routing.go | 10 +--------- 1 file changed, 1 insertion(+), 9 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 0988859e4..b23d738f9 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go @@ -113,15 +113,7 @@ func Setup( httpReq, federation, cfg, aliasAPI, ) }, - )).Methods("Get") - v1fedmux.Handle("/query/directory/?room_alias={alias}", common.MakeFedAPI( - "federation_query_room_alias", cfg.Matrix.ServerName, keys, - func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse { - return RoomAliasToID( - httpReq, federation, cfg, aliasAPI, - ) - }, - )).Methods("Get") + )).Methods("GET") v1fedmux.Handle("/query/profile", common.MakeFedAPI( "federation_query_profile", cfg.Matrix.ServerName, keys,