mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 01:13:10 -06:00
Use MakeFedAPI
This commit is contained in:
parent
5b7456dc4c
commit
1d517e0bb9
|
|
@ -79,12 +79,12 @@ func Setup(
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
|
|
||||||
v1fedmux.Handle("/3pid/onbind", makeAPI("3pid_onbind",
|
v1fedmux.Handle("/3pid/onbind", common.MakeFedAPI(
|
||||||
func(req *http.Request) util.JSONResponse {
|
"3pid_onbind", cfg.Matrix.ServerName, keys,
|
||||||
return writers.CreateInvitesFrom3PIDInvites(req, query, cfg, producer)
|
func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse {
|
||||||
|
return writers.CreateInvitesFrom3PIDInvites(httpReq, query, cfg, producer)
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
}
|
|
||||||
|
|
||||||
v1fedmux.Handle("/event/{eventID}", common.MakeFedAPI(
|
v1fedmux.Handle("/event/{eventID}", common.MakeFedAPI(
|
||||||
"federation_get_event", cfg.Matrix.ServerName, keys,
|
"federation_get_event", cfg.Matrix.ServerName, keys,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue