From 80b451df1bda1518fde9e52979c9d973a23a519b Mon Sep 17 00:00:00 2001 From: SUMUKHA-PK Date: Thu, 14 Mar 2019 07:46:51 +0530 Subject: [PATCH] metricsName changed --- .../matrix-org/dendrite/clientapi/routing/routing.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go b/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go index a00ba3901..8dfb5f20d 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go @@ -408,7 +408,7 @@ func Setup( ).Methods(http.MethodGet, http.MethodOptions) r0mux.Handle("/user/{userId}/rooms/{roomId}/tags", - common.MakeAuthAPI("account_3pid", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse { + common.MakeAuthAPI("get_tag", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse { // When a GET tag request is done, obtain all data of user from here and provide a JSON response. // MakeAuthAPI will convert it to a HTTP response and reflect it on the browser. vars := mux.Vars(req) @@ -417,7 +417,7 @@ func Setup( ).Methods(http.MethodGet, http.MethodOptions) r0mux.Handle("/user/{userId}/rooms/{roomId}/tags/{tag}", - common.MakeAuthAPI("account_3pid", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse { + common.MakeAuthAPI("put_tag", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse { // When a PUT tag request is done, obtain all data of user from here and provide a JSON response. // MakeAuthAPI will convert it to a HTTP response and reflect it on the browser. vars := mux.Vars(req) @@ -426,7 +426,7 @@ func Setup( ).Methods(http.MethodPut, http.MethodOptions) r0mux.Handle("/user/{userId}/rooms/{roomId}/tags/{tag}", - common.MakeAuthAPI("account_3pid", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse { + common.MakeAuthAPI("delete_tag", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse { // When a DELETE tag request is done, obtain all data of user from here and provide a JSON response. // MakeAuthAPI will convert it to a HTTP response and reflect it on the browser. vars := mux.Vars(req)