Correct user/devices path

This commit is contained in:
Anant Prakash 2018-07-24 01:31:39 +05:30
parent d2ae425752
commit ff9cb0c7bb
No known key found for this signature in database
GPG key ID: C5D399F626523045

View file

@ -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(