aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/routing.go
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-10-25 12:39:10 +0200
committerGitHub <noreply@github.com>2022-10-25 12:39:10 +0200
commit313cb3fd193397536b069d819f8346d625d82af8 (patch)
treef698a100adbb8476d1bc0b2f61629765e384fc08 /clientapi/routing/routing.go
parent7506e3303e78e47a7bea454de1e726c6f6640d2f (diff)
Filter `/members`, return members at given point (#2827)
Makes the tests ``` Can get rooms/{roomId}/members at a given point Can filter rooms/{roomId}/members ``` pass, by moving `/members` and `/joined_members` to the SyncAPI.
Diffstat (limited to 'clientapi/routing/routing.go')
-rw-r--r--clientapi/routing/routing.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/clientapi/routing/routing.go b/clientapi/routing/routing.go
index 4ca8e59c..e0e3e33d 100644
--- a/clientapi/routing/routing.go
+++ b/clientapi/routing/routing.go
@@ -950,26 +950,6 @@ func Setup(
}),
).Methods(http.MethodPost, http.MethodOptions)
- v3mux.Handle("/rooms/{roomID}/members",
- httputil.MakeAuthAPI("rooms_members", userAPI, func(req *http.Request, device *userapi.Device) util.JSONResponse {
- vars, err := httputil.URLDecodeMapValues(mux.Vars(req))
- if err != nil {
- return util.ErrorResponse(err)
- }
- return GetMemberships(req, device, vars["roomID"], false, cfg, rsAPI)
- }),
- ).Methods(http.MethodGet, http.MethodOptions)
-
- v3mux.Handle("/rooms/{roomID}/joined_members",
- httputil.MakeAuthAPI("rooms_members", userAPI, func(req *http.Request, device *userapi.Device) util.JSONResponse {
- vars, err := httputil.URLDecodeMapValues(mux.Vars(req))
- if err != nil {
- return util.ErrorResponse(err)
- }
- return GetMemberships(req, device, vars["roomID"], true, cfg, rsAPI)
- }),
- ).Methods(http.MethodGet, http.MethodOptions)
-
v3mux.Handle("/rooms/{roomID}/read_markers",
httputil.MakeAuthAPI("rooms_read_markers", userAPI, func(req *http.Request, device *userapi.Device) util.JSONResponse {
if r := rateLimits.Limit(req, device); r != nil {