Add PerformInvite

This commit is contained in:
Neil Alexander 2022-08-08 09:44:31 +01:00
parent 4a69b1cedf
commit 2d7402ed7d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -19,6 +19,12 @@ func AddRoutes(intAPI api.FederationInternalAPI, internalAPIMux *mux.Router) {
intAPI.QueryJoinedHostServerNamesInRoom, intAPI.QueryJoinedHostServerNamesInRoom,
).Serve(internalAPIMux) ).Serve(internalAPIMux)
httputil.NewInternalAPIServer(
"PerformInvite",
FederationAPIPerformInviteRequestPath,
intAPI.PerformInvite,
).Serve(internalAPIMux)
httputil.NewInternalAPIServer( httputil.NewInternalAPIServer(
"PerformLeave", "PerformLeave",
FederationAPIPerformLeaveRequestPath, FederationAPIPerformLeaveRequestPath,