mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 17:33:09 -06:00
a slight change to match master auth.Data
This commit is contained in:
parent
9c36971b11
commit
fcf90dc524
|
|
@ -21,10 +21,10 @@ import (
|
|||
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
|
||||
"github.com/matrix-org/dendrite/clientapi/auth/storage/devices"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/auth"
|
||||
"github.com/matrix-org/dendrite/common"
|
||||
"github.com/matrix-org/dendrite/encryptoapi/storage"
|
||||
"github.com/matrix-org/util"
|
||||
"github.com/matrix-org/dendrite/clientapi/auth"
|
||||
)
|
||||
|
||||
const pathPrefixUnstable = "/_matrix/client/unstable"
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ func Setup(apiMux *mux.Router, srp *sync.RequestPool, syncDB *storage.SyncServer
|
|||
})).Methods(http.MethodGet, http.MethodOptions)
|
||||
|
||||
unstablemux.Handle("/sendToDevice/{eventType}/{txnId}",
|
||||
common.MakeAuthAPI("look up changes", deviceDB, func(req *http.Request, device *authtypes.Device) util.JSONResponse {
|
||||
common.MakeAuthAPI("look up changes", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse {
|
||||
vars := mux.Vars(req)
|
||||
eventType := vars["eventType"]
|
||||
txnID := vars["txnId"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue