mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Use MakeAPI for 3pid onbind handler as it isn't a standard federation request
This commit is contained in:
parent
a70cdd1a99
commit
c68cd9beac
|
|
@ -79,10 +79,9 @@ func Setup(
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
|
|
||||||
v1fedmux.Handle("/3pid/onbind", common.MakeFedAPI(
|
v1fedmux.Handle("/3pid/onbind", common.MakeAPI("3pid_onbind",
|
||||||
"3pid_onbind", cfg.Matrix.ServerName, keys,
|
func(req *http.Request) util.JSONResponse {
|
||||||
func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse {
|
return writers.CreateInvitesFrom3PIDInvites(req, query, cfg, producer, federation)
|
||||||
return writers.CreateInvitesFrom3PIDInvites(httpReq, query, cfg, producer, federation)
|
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue