aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorS7evinK <tfaelligen@gmail.com>2021-12-03 10:49:14 +0100
committerGitHub <noreply@github.com>2021-12-03 09:49:14 +0000
commitf9bac2f78aaed91a77cc1fe455a05899be2e2a12 (patch)
tree51a8e0c7c7c956906144817edd9599cac11d8ae2 /cmd
parent388d7a197446bce5493c52d36affecf0cf706296 (diff)
Add missing internal routes (#2064)
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dendrite-polylith-multi/personalities/federationapi.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/dendrite-polylith-multi/personalities/federationapi.go b/cmd/dendrite-polylith-multi/personalities/federationapi.go
index 9b59cf45..5f87f96b 100644
--- a/cmd/dendrite-polylith-multi/personalities/federationapi.go
+++ b/cmd/dendrite-polylith-multi/personalities/federationapi.go
@@ -35,6 +35,9 @@ func FederationAPI(base *basepkg.BaseDendrite, cfg *config.Dendrite) {
&base.Cfg.MSCs, nil,
)
+ intAPI := federationapi.NewInternalAPI(base, federation, rsAPI, base.Caches, true)
+ federationapi.AddInternalRoutes(base.InternalAPIMux, intAPI)
+
base.SetupAndServeHTTP(
base.Cfg.FederationAPI.InternalAPI.Listen,
base.Cfg.FederationAPI.ExternalAPI.Listen,